(("u">typeof self?self:this).webpackChunkshopee_pc=("u">typeof self?self:this).webpackChunkshopee_pc||[]).push([[4637],{1004:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},1284:(e,t,n)=>{var r=n(58982),i=n(17349),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},1380:(e,t,n)=>{"use strict";n.d(t,{jH:()=>o});var r=n(65168);let i=(0,r.createContext)(void 0);function o(e){let t=(0,r.useContext)(i);return e||t||"ltr"}},2308:(e,t,n)=>{var r=n(14376),i=n(18824),o=n(49302),a=n(67445),l=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,l(e))}},2476:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},2723:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(56169);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=(0,r.A)(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},3138:function(e,t,n){var r;r=n(54570),function(e){var t=r.lib,n=t.WordArray,i=t.Hasher,o=r.algo,a=[],l=[];function s(e){return(e-(0|e))*0x100000000|0}for(var u=2,c=0;c<64;)(function(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0})(u)&&(c<8&&(a[c]=s(e.pow(u,.5))),l[c]=s(e.pow(u,1/3)),c++),u++;var d=[],f=o.SHA256=i.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],u=n[5],c=n[6],f=n[7],p=0;p<64;p++){if(p<16)d[p]=0|e[t+p];else{var _=d[p-15],h=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,v=d[p-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;d[p]=h+d[p-7]+m+d[p-16]}var g=s&u^~s&c,y=r&i^r&o^i&o,E=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+g+l[p]+d[p],A=E+y;f=c,c=u,u=s,s=a+b|0,a=o,o=i,i=r,r=b+A|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+c|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=e.floor(r/0x100000000),n[(i+64>>>9<<4)+15]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});r.SHA256=i._createHelper(f),r.HmacSHA256=i._createHmacHelper(f)}(Math),e.exports=r.SHA256},3763:(e,t,n)=>{var r=n(71961);e.exports=function(e,t){for(var n=0,i=r(t),o=new e(i);i>n;)o[n]=t[n++];return o}},4152:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},7194:e=>{e.exports=function(e){return null==e}},7450:function(e,t,n){var r,i,o,a,l,s,u,c,d,f,p,_,h,v,m;r=n(54570),n(24477),n(48017),n(75373),n(62012),i=r.lib.BlockCipher,o=r.algo,a=[],l=[],s=[],u=[],c=[],d=[],f=[],p=[],_=[],h=[],function(){for(var e=[],t=0;t<256;t++)t<128?e[t]=t<<1:e[t]=t<<1^283;for(var n=0,r=0,t=0;t<256;t++){var i=r^r<<1^r<<2^r<<3^r<<4;i=i>>>8^255&i^99,a[n]=i,l[i]=n;var o=e[n],v=e[o],m=e[v],g=257*e[i]^0x1010100*i;s[n]=g<<24|g>>>8,u[n]=g<<16|g>>>16,c[n]=g<<8|g>>>24,d[n]=g;var g=0x1010101*m^65537*v^257*o^0x1010100*n;f[i]=g<<24|g>>>8,p[i]=g<<16|g>>>16,_[i]=g<<8|g>>>24,h[i]=g,n?(n=o^e[e[e[m^o]]],r^=e[e[r]]):n=r=1}}(),v=[0,1,2,4,8,16,32,64,128,27,54],m=o.AES=i.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=((this._nRounds=n+6)+1)*4,i=this._keySchedule=[],o=0;o6&&o%n==4&&(l=a[l>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l]):l=(a[(l=l<<8|l>>>24)>>>24]<<24|a[l>>>16&255]<<16|a[l>>>8&255]<<8|a[255&l])^v[o/n|0]<<24,i[o]=i[o-n]^l}for(var s=this._invKeySchedule=[],u=0;u>>24]]^p[a[l>>>16&255]]^_[a[l>>>8&255]]^h[a[255&l]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,u,c,d,a)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,f,p,_,h,l);var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,l){for(var s=this._nRounds,u=e[t]^n[0],c=e[t+1]^n[1],d=e[t+2]^n[2],f=e[t+3]^n[3],p=4,_=1;_>>24]^i[c>>>16&255]^o[d>>>8&255]^a[255&f]^n[p++],v=r[c>>>24]^i[d>>>16&255]^o[f>>>8&255]^a[255&u]^n[p++],m=r[d>>>24]^i[f>>>16&255]^o[u>>>8&255]^a[255&c]^n[p++],g=r[f>>>24]^i[u>>>16&255]^o[c>>>8&255]^a[255&d]^n[p++];u=h,c=v,d=m,f=g}var h=(l[u>>>24]<<24|l[c>>>16&255]<<16|l[d>>>8&255]<<8|l[255&f])^n[p++],v=(l[c>>>24]<<24|l[d>>>16&255]<<16|l[f>>>8&255]<<8|l[255&u])^n[p++],m=(l[d>>>24]<<24|l[f>>>16&255]<<16|l[u>>>8&255]<<8|l[255&c])^n[p++],g=(l[f>>>24]<<24|l[u>>>16&255]<<16|l[c>>>8&255]<<8|l[255&d])^n[p++];e[t]=h,e[t+1]=v,e[t+2]=m,e[t+3]=g},keySize:8}),r.AES=i._createHelper(m),e.exports=r.AES},7712:(e,t,n)=>{var r=n(72532),i=n(30241);e.exports=function(e){return r(i(e))}},8837:(e,t,n)=>{n(78629),n(85872)},10047:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},11139:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStorage=function(){try{var e=globalThis.localStorage.getItem(r.localStorageKey);if(e)return JSON.parse(e)}catch{}return null},t.setStorage=function(e){try{globalThis.localStorage.setItem(r.localStorageKey,JSON.stringify(e))}catch{}};var r=n(31821)},11793:(e,t,n)=>{"use strict";n.d(t,{Ny:()=>x,S6:()=>P});var r,i,o,a,l,s=n(65168),u=n.n(s),c=n(30886),d=n.n(c),f=n(10076),p=n(83279),_=n(57211),h=n.n(_),v=n(65034);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}let g=function(e){var t=e.getIn,n=e.toJS,r=function(e){var r=n(t(e,["router"]));if(!(null!=r&&"object"===m(r)&&t(r,["location"])&&t(r,["action"])))throw'Could not find router reducer in state tree, it must be mounted under "router"';return r},i=function(e){return n(t(r(e),["location"]))};return{getLocation:i,getAction:function(e){return n(t(r(e),["action"]))},getRouter:r,getSearch:function(e){return n(t(r(e),["location","search"]))},getHash:function(e){return n(t(r(e),["location","hash"]))},createMatchSelector:function(e){var t=null,n=null;return function(r){var o=(i(r)||{}).pathname;if(o===t)return n;t=o;var a=(0,p.matchPath)(o,e);return a&&n&&a.url===n.url&&a.isExact===n.isExact||(n=a),n}}}};function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=Array(t);ntypeof Symbol&&Symbol.iterator in Object(e)){var t=[],n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done)&&(t.push(o.value),2!==t.length);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t}}(n)||function(e){if(e){if("string"==typeof e)return S(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return S(e,2)}}(n)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}();return O({},e,T({},r[0],r[1]))},{});return O({},e,{query:n})};function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}let R={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,i=0;i2&&void 0!==arguments[2]&&arguments[2];t.inTimeTravelling?t.inTimeTravelling=!1:l(e,n,r)};return t.unlisten=a.listen(u),e.noInitialPop||u(a.location,a.action,!0),t}return t=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.omitRouter,n=e.history,r=e.children;return t?(u()).createElement(u().Fragment,null,r):(u()).createElement(p.Router,{history:n},r)}}],function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.type,i=n.payload;if(r===v.LK){var o=i.location,s=i.action;return i.isFirstRendering?e:l(e,{location:a(I(o)),action:s})}return e}}),L=g(R);L.getLocation,L.getAction,L.getHash,L.getRouter,L.getSearch,L.createMatchSelector},12935:(e,t,n)=>{var r=n(16381),i=n(57925);e.exports=function(e){if("Function"===r(e))return i(e)}},13142:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ABTest:!0};Object.defineProperty(t,"ABTest",{enumerable:!0,get:function(){return i.ABTest}});var i=n(15931),o=n(20260);Object.keys(o).forEach(function(e){"default"===e||"__esModule"===e||Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})})},13182:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,o={},a=0,l=function(e){return e&&(e.host||l(e.parentNode))},s=function(e,t,n,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(e);return n&&t.contains(n)?n:null}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],f=new Set,p=new Set(u),_=function(e){!e||f.has(e)||(f.add(e),_(e.parentNode))};u.forEach(_);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(s),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,l=(c.get(e)||0)+1;r.set(e,a),c.set(e,l),d.push(e),1===a&&o&&i.set(e,!0),1===l&&e.setAttribute(n,"true"),o||e.setAttribute(s,"true")}catch{}})};return h(t),f.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(s),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("u"{"use strict";n.d(t,{Ay:()=>l});var r=n(59192),i=n(50756),o=n(40761),a=n(19816);function l(e,t,n,l){let s=l||function(e,t,n){let r=[];if(e&&e.promotionLabel)for(let o of e.promotionLabel)if(o.is_predefined){let e=i.C6[o.name];e&&e(t,n)&&r.push(o)}else(0,a.D)(t,{element:o})&&r.push(o);return r}(e,t,n);return(0,o.Uy)((0,o.aU)(s)).slice(0,(0,r.A)(e,["maxBadges","promotionLabel"],1/0))}},13438:function(e,t,n){var r,i,o;e.exports=void(i=(r=n(54570)).lib.Base,o=r.enc.Utf8,r.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var i=this._oKey=t.clone(),a=this._iKey=t.clone(),l=i.words,s=a.words,u=0;u{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch{u=function(e,t,n){return e[t]=n}}function c(e,n,r,o){var a,l,s,u,c=Object.create((n&&n.prototype instanceof v?n:v).prototype);return i(c,"_invoke",{value:(a=e,l=r,s=new I(o||[]),u=f,function(e,n){if(u===p)throw Error("Generator is already running");if(u===_){if("throw"===e)throw n;return R()}for(s.method=e,s.arg=n;;){var r=s.delegate;if(r){var i=function e(n,r){var i=r.method,o=n.iterator[i];if(t===o)return(r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method))?h:("return"!==i&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+i+"' method")),h);var a=d(o,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,h;var l=a.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,h):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,h)}(r,s);if(i){if(i===h)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(u===f)throw u=_,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);u=p;var o=d(a,l,s);if("normal"===o.type){if(u=s.done?_:"suspendedYield",o.arg===h)continue;return{value:o.arg,done:s.done}}"throw"===o.type&&(u=_,s.method="throw",s.arg=o.arg)}})}),c}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f="suspendedStart",p="executing",_="completed",h={};function v(){}function m(){}function g(){}var y={};u(y,a,function(){return this});var E=Object.getPrototypeOf,b=E&&E(E(C([])));b&&b!==n&&r.call(b,a)&&(y=b);var A=g.prototype=v.prototype=Object.create(y);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var n;i(this,"_invoke",{value:function(i,o){function a(){return new t(function(n,a){!function n(i,o,a,l){var s=d(e[i],e,o);if("throw"===s.type)l(s.arg);else{var u=s.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(c).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,l)})}}(i,o,n,a)})}return n=n?n.then(a,a):a()}})}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function C(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],l=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},13769:(e,t,n)=>{"use strict";n.d(t,{J1:()=>c,Kg:()=>C,LI:()=>s,Ll:()=>E,Nw:()=>d,Rv:()=>b,T9:()=>l,Tn:()=>R,dp:()=>w,hg:()=>f,kf:()=>S,kg:()=>g,kl:()=>_,pH:()=>O,pJ:()=>m,tB:()=>p,tv:()=>A,u$:()=>T,uc:()=>I,yT:()=>u});var r=n(58073),i=n(67345),o=n(69733),a=n(98790);function l(e,t){return Math.max(e,t)}function s(e){return Math.round(e)}function u(){return Math.random()}function c(e){let t=e.replace(/(\?\w+?=.*$)/,r.u1);return/^[a-zA-Z][a-zA-Z\d+.-]*:/.test(e)||e.startsWith("//")||(t=o.GZ.origin+t),t}function d(e){return"u">typeof Request&&e instanceof Request}function f(e,t){return t?.method||(d(e)?e.method:r.Xs)}function p(){return Date.now()}function _(){return String(o.GZ.href.slice(0,512))}let h={script:"script",img:"image"},v=[["json","json"],["js","script"],["css","css"],[/jpg|jpeg|png|svg|gif|ico/,"image"],[/woff2?|ttf|otf|eot/,"font"]];function m(e,t){var n;let r=h[t];if(r)return r;let i=(n=e,n.match(/\.(\w{2,5})$/)?.[1]);if(i){for(let[e,t]of v)if(i.match(e))return t}}function g(e){return"transferSize"in e&&"duration"in e&&e.transferSize>0&&e.duration>0?s(e.transferSize/e.duration/10.24)/100:-1}function y(e){return 0===e.transferSize&&0===e.decodedBodySize}function E(e){return e.nextHopProtocol||(y(e)?r.$Y:r.HV)}function b(e){return"decodedBodySize"in e&&"encodedBodySize"in e&&"transferSize"in e?y(e)?r.$Y:0===e.transferSize?"cache":300===e.transferSize||e.transferSize300?"network":r.HV:r.HV}function A(e,t=-1){return null==e?t:s(e)}function S(){return new Promise(e=>{let t=async()=>{await new Promise(e=>(0,a.wg)(e,0)),e()};if("complete"===o.qQ.readyState)t();else{let e=()=>t().finally(()=>{(0,a.f)(o.jf,"load",e)});(0,a.q2)(o.jf,"load",e)}})}function w(e){return e&&0!==Object.keys(e).length?e:void 0}function O(e){if(!e)return{};let t={};for(let n of Object.keys(e)){let o=e[n];(0,i.r)(n,o)&&(t[n]=o?C(o)?o:o.toString():r.u1)}return t}function T(e){if(!e)return r.u1;if(C(e))return e;try{return JSON.stringify(e,"object"==typeof e?Object.getOwnPropertyNames(e):void 0)}catch{return r.u1}}function I(){return performance.timeOrigin||performance.timing.navigationStart||0}function C(e){return"string"==typeof e}function R(e){return"function"==typeof e}},14368:(e,t,n)=>{"use strict";var r=n(64839);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},14376:(e,t,n)=>{var r=n(1004),i=n(18824);e.exports=function(e,t){var n;return arguments.length<2?i(n=r[e])?n:void 0:r[e]&&r[e][t]}},15069:(e,t,n)=>{"use strict";n.d(t,{LK:()=>r});var r="@@router/LOCATION_CHANGE",i=function(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},15931:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.ABTest=void 0;var i,o=n(30136),a=n(31821),l=(i=n(56434))&&i.__esModule?i:{default:i},s=n(41905),u=n(66455);function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return d(e,void 0);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,void 0)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(l&&s){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}function p(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){n(e);return}l.done?t(s):Promise.resolve(s).then(r,i)}function _(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){p(o,r,i,a,l,"next",e)}function l(e){p(o,r,i,a,l,"throw",e)}a(void 0)})}}function h(e,t){for(var n=0;n{var r=n(57925),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},16838:(e,t,n)=>{"use strict";var r,i,o,a,l,s,u,c;n.d(t,{fb:()=>_,Vc:()=>h,AF:()=>p,Hr:()=>d,OA:()=>f,ui:()=>m,Ih:()=>v,ag:()=>g,xi:()=>y}),(l=r||(r={})).RNRouter="rnRouter",l.SafePage="safePage",l.RFTP="rftpPage",l.AddCard="addCardPage",l.PostPage="postPage",l.OTP="otpPage",l.CoexistAddCardPage="coexistAddCardPage",l.SeaBankLinkPage="seaBankLinkPage",l.PaymentInstruction="paymentInstructionPage",(s=i||(i={}))[s.Invalid=0]="Invalid",s[s.Shopee=1]="Shopee",s[s.ShopeePayMerchant=2]="ShopeePayMerchant",s[s.ShopeeLite=3]="ShopeeLite",s[s.ShopeeFoodDriver=4]="ShopeeFoodDriver",s[s.ShopeePayUser=5]="ShopeePayUser";let d={NONE:0,CYBERSOURCE:1,BANK_TRANSFER:2,OFFLINE_PAYMENT:3,IPAY:4,FREE:5,COD:6,ESUN:7,BILL_PAYMENT:8,INDOMARET:13,KREDIVO_INSTALLMENT:14,NICEPAY_CC_INSTALLMENT:15,ESUN_CB:16,IPAY88_CC:17,AIRPAY_CC:18,ONE_KLIK_CC:19,SHOPEE_WALLET:20,AKULAKU:21,STRIPE_CC:22,AIRPAY_CC_INSTALLMENT:23,SHOPEE_CREDIT:24,BR_CC:39,PAY_WITH_POINTS:36},f={CYBERSOURCE:1,BANK_TRANSFER:2,ATM_PAYMENT:7,OFFLINE_PAYMENT:3,IPAY_88:4,COD:6,IONPAY:8,ESUN_CC:9,DRAGONPAY:10,AIRPAY_IBANKING:11,ANDROID_PAY:12,INDOMARET:13,SHOPEE_WALLET:20,KREDIVO:14,NICEPAY_CC:15,ESUN_CB:16,AIRPAY_CC:18,IPAY88_CC:17,STRIPE_CC:22,AIRPAY_CC_INSTALLMENT:23},p={VISA:"001",MASTERCARD:"002",AMEX:"003",DISCOVER:"004",DINERS:"005",JCB:"007",MAESTRO_UK:"024",MAESTRO_INT:"042",HIPERCARD:"050",ELO:"054",RUPAY:"057",MAESTRO:"058",CARNET:"060",MAGNA:"061",CABAL:"063",NARANJA_X:"064",UPI:"065",NAPAS:"066"};(u=o||(o={}))[u.CREDIT=1]="CREDIT",u[u.DEBIT=2]="DEBIT",u[u.PREPAID=3]="PREPAID",u[u.BCA_SAKUKU=4]="BCA_SAKUKU";let _={NONE:0,VISA:1,MASTERCARD:2,AMEX:3,DISCOVER:4,DINERSCLUB:5,CARTEBLANCHE:6,JCB:7,ENROUTE:14,JAL:21,MAESTRO_UK:24,DELTA:31,VISA_ELECTRON:33,DANKORT:34,CARTE_BLEUE:36,CARTA_SI:37,MAESTRO_INT:42,GE_MONEY_UK:43,HIPERCARD:50,ELO:54,BCA_ONE_KLIK:55,DINERS:56,RUPAY:57,MAESTRO:58,CARNET:60,MAGNA:61,BRI_DIRECT_DEBIT:62,CABAL:63,NARANJA_X:64,UPI:65},h={[_.VISA]:"VISA",[_.CABAL]:"CABAL",[_.MASTERCARD]:"Master Card",[_.AMEX]:"American Express",[_.JCB]:"JCB",[_.ELO]:"ELO",[_.HIPERCARD]:"Hipercard",[_.DISCOVER]:"Discover Card",[_.MAGNA]:"Magna",[_.MAESTRO]:"Maestro",[_.MAESTRO_INT]:"Maestro",[_.MAESTRO_UK]:"Maestro",[_.CARNET]:"CARNET",[_.DINERS]:"Diners Club",[_.DINERSCLUB]:"Diners Club",[_.NARANJA_X]:"NaranjaX",[_.UPI]:"UPI"},v={DISCOUNT_ABSOLUTE:1,DISCOUNT_PERCENTAGE:2},m={NONE:0,BASIC:1,BANK:2,CARD:3,WALLET:4,CC_INSTALLMENT:5,NON_CC_INSTALLMENT:6,BANK_ACCOUNT:7,GOOGLE_PAY:8,GOV_PURCHASE:9,COUNTER:10,APPLE_PAY:11,DISPLAY_INFO:-999},g=Object.freeze({CYBERSOURCE_SG:1000102,CYBERSOURCE_MY:2000102,CYBERSOURCE_TW:3000102,CYBERSOURCE_PH:4000102,CYBERSOURCE_VN:5000102,CYBERSOURCE_TH:7000102,CYBERSOURCE_ID:8000102,AIRWALLEX_SG:1006400,AIRWALLEX_MY:2006400,AIRWALLEX_TW:3006400,AIRWALLEX_PH:4006400,AIRWALLEX_VN:5006400,AIRWALLEX_TH:7006400,AIRWALLEX_ID:8006400,AIRWALLEX_SG_NEW:1006401,AIRWALLEX_MY_NEW:2006401,AIRWALLEX_TW_NEW:3006401,AIRWALLEX_PH_NEW:4006401,AIRWALLEX_VN_NEW:5006401,AIRWALLEX_TH_NEW:7006401,AIRWALLEX_ID_NEW:8006401,SHOPEE_WALLET_SG:1001400,SHOPEE_CREDIT_SG:1002601,WIRECARD_CC_INSTALLMENT:1003800,AIRPAY_CC_INSTALLMENT_SG:1000501,MPGS_CC:1000800,GOOGLE_PAY_SG:1006500,GOOGLE_PAY_BR_APCC:0x98bb9c,GOOGLE_PAY_SG_SYBS:1013e3,SG_GOV_PURCHASE:1008100,PAY_NOW:1006800,PAY_NOW_QR:1011300,DBS_PAY_LAH:1011100,ADYEN_CC_SG:1016e3,EGIRO:1018e3,SEABANK_SG:1030500,SEABANK_DIRECT_DEBIT_SG:1030900,WALLET_SG_NEW:1013100,IPAY88_CC:2000100,IPAY88_CC_INSTALLMENT:2000101,SHOPEE_WALLET_MY:2001400,MOLPAY_CASH:2004e3,MOLPAY_CASH_WITH_OPTIONS:2011200,PAYNET_IBANKING:2032600,MOLPAY_IBANKING:2004900,IPAY88_BANKING:2002700,RPP_BANKING:2006700,MAYBANK_CASA:2007100,SHOPEE_CREDIT_MY:2002601,RPP_DIRECT_DEBIT:2008400,GOOGLE_PAY_MY:2013e3,WALLET_MY_NEW:2013100,AIRPAY_CC_INSTALLMENT_TW:3000501,AIRPAY_CC_INTERNATIONAL_TW:3000502,AIRPAY_CC_TW:3004e3,TAISHIN_VA:3003900,JKO_PAY:3004100,JKO_COD:3004600,JKO_BANK_TRANSFER:3004700,SHOPEE_CREDIT_TW:3002601,CTBCVA:3008300,SHOPEE_WALLET_PH:4001400,STRIPE_CC_PH:4000700,UNION_BANK:4000302,SHOPEE_CREDIT_PH:4002601,DRAGONPAY_REMITTANCE:4003400,DRAGONPAY_OTC:4003401,DRAGONPAY_ONLINE_BANKING:4003402,AIRPAY_CC_PH:4004e3,TOUCH_PAY:4007201,BAYAD_CENTER:4007204,TRUE_MONEY:4007205,BPI:4008700,AIRPAY_CC_INSTALLMENT_PH:4000501,GOOGLE_PAY_PH:4009500,GOOGLE_PAY_VN:5009500,INSTAPAY:4011600,SEABANK_DIRECT_DEBIT_TOPUP_PH:4008500,SEABANK_DIRECT_DEBIT_MPP_PH:4008501,SEABANK_DIRECT_DEBIT_SPM_PH:4008600,UNION_BANK_PH:4008800,BDO_PH:4030100,INSTAPAY_GCASH:4019501,WALLET_PH_NEW:4013100,INSTAPAY_DIRECT_DEBIT_PH:4030600,CYBERSOURCE_CC_INSTALLMENT_VN:5000101,AIRPAY_WALLET_VN:5001800,AIRPAY_IBANKING_VN:5002800,AIRPAY_GIRO_VN:5002900,PAY_AT_FPT:5007200,SACOMBANK_VN:5007201,CYBERSOURCE_SHOPEEPAY_VN:5018200,BIDV_STATIC_VN:5007400,VCB_VA:5031700,BIDV_VA:5007202,SHOPEE_CREDIT_VN:5002601,AIRPAY_CC_VN:5004e3,SHOPEEPAY_VN:5031600,NAPAS_VN:5003320,AIRPAY_IBANKING_TH:7000300,AIRPAY_IBANKING_TH_TOPUP:7000302,AIRPAY_IBANKING_TH_V2:7006600,AIRPAY_CC_INSTALLMENT_TH:7000501,AIRPAY_CC_INTERNATIONAL_TH:7000502,AIRPAY_WALLET_TH:7001800,AIRPAY_GIRO_TH:7002900,AIRPAY_CC_TH:7004e3,ATM_BILL_PAYMENT_TH:7007e3,SHOPEE_CREDIT_TH:7002601,APCC_TH:7004e3,APCC_INS_TH:7000501,APCC_INTER_TH:7000502,APCC_MARKET_TH:70100,QR_PROMPTPAY_TH:7016500,QR_PROMPTPAY_KBANK_TH:7032400,APCC_SHOPEEPAY_TH:7018100,PAY_WITH_POINTS_TH:7031e3,GOOGLE_PAY_TH:7009500,WALLETTH_V1:79001,MITRA_ID:8000011,AKULAKU:8000700,NICEPAY_VA:8000200,SHOPEE_WALLET_ID:8001400,NICEPAY_CC:8002050,SHOPEE_CREDIT_ID:8002601,SHOPEE_CREDIT_ID_2:8002602,INDOMARET:8003001,ALFAMART:8003200,SIPP_VA:8003600,SIPP_VA_BKE:0x54e94e7,SIPP_MIXED_VA_BKE:0x54ed367,NICEPAY_CC_INSTALLMENT:8002e3,KREDIVO:8002100,SIPP_MIXED_VA:8005200,SIPP_MIXED_VA_OTHER:8005201,SIPP_CC:8008200,SIPP_CC_INSTALLMENT:8008201,BCA_ONE_KLIK_CC:8000900,SEABANK_DIRECT_DEBIT_TOPUP:8008500,SEABANK_DIRECT_DEBIT_MARKETPLACE:8008600,BRI_DIRECT_DEBIT:8012900,MITRA_SHOPEE:8007201,AIRPAY_OFFLINE:8000001,WALLET_ID_NEW:8013100,QRIS_ID:8031400,AIRPAY_CC_ID:8004e3,AIRPAY_CC_INSTALLMENT_ID:8000501,MOTORCYCLE_ID:8032801,NICEPAY_VA_XX:9000200,SHOPEE_WALLET_ID_XX:9001400,NICEPAY_CC_INSTALLMENT_XX:9002e3,NICEPAY_CC_XX:9002050,KREDIVO_XX:9002100,SHOPEE_CREDIT_XX:9002601,INDOMARET_XX:9003001,ALFAMART_XX:9003200,SIPP_VA_XX:9003600,STRIPE_CC_FR:0x112d828,STRIPE_CC_PL:0xf453a8,P24_FAST_TRANSFERS_PL:0xf45c40,P24_CC_PL:0xf45ca4,P24_BLIK_PL:0xf45b14,STRIPE_CC_ES:0x10395e8,ADYEN_CC_ES:0x1039840,EBANX_BOLETO:0x98ae54,EBANX_CC:0x98aeb8,EBANX_CC_INSTALLMENT_BR:0x98aeb9,EBANX_IBANKING_BR:0x98af1c,EBANX_ADYEN_CC_BR:0x98c881,EBANX_PIX_BR:0x98cdf8,ADYEN_BOLETO:0x98c498,ADYEN_PIX_BR:0x98cb3c,SPINPAY_PIX_BR:0x98cf88,SANTANDER_BOLETO:0x98d050,SHOPEE_WALLET_BR:0x989bf8,AIRPAY_CC_INSTALLMENT_BR:0x98cc69,AIRPAY_CAIXA_VIRTUAL_DEBIT_CARD:0x98f378,AIRPAY_CC_MX:0xb750e9,AIRPAY_DC_MX:0xb750ea,SELLER_WALLET_BR:0x989b94,SHOPEEPAY_LATER_BR:0x98a0a9,SANTANDER_PIX_BR:0x98d0b4,EBANX_CC_MX:0xb73338,EBANX_CC_INSTALLMENT_MX:0xb73339,EBANX_SPEI:0xb73f54,EBANX_OXXO:0xb73fb8,EBANX_DEBIT:0xb7333a,SELLER_WALLET_MX:0xb72014,EBANX_IBANKING_CO:0xc675dc,EBANX_CC_CO:0xc6757a,EBANX_CC_INSTALLMENT_CO:0xc67579,EBANX_BALOTO_CO:0xc68324,EBANX_EFECTY_CO:0xc682c0,EBANX_PSE_CO:0xc675dc,AIRPAY_CC_CO:0xc69329,AIRPAY_DC_CO:0xc6932a,EBANX_IBANKING_CL:0xd5b81c,EBANX_CC_CL:0xd5b7ba,EBANX_CC_INSTALLMENT_CL:0xd5b7b9,EBANX_SERVIPAG_CL:0xd5c5c8,WEBPAY_CL:0xd5c62c,AIRPAY_CC_CL:0xd5d569,AIRPAY_DC_CL:0xd5d56a,CREDIT_CARD_AR:0xe516e1,DEBIT_CARD_AR:0xe516e2,NET_BANKING_IN:0x12218d8,CASHFREE_CC:19012e3,UPI:0x122193c,SELLER_WALLET_TW:3001300,SELLER_WALLET_ID:8001300,SELLER_WALLET_SG:1001300,SELLER_WALLET_MY:2001300,SELLER_WALLET_PH:4001300,SELLER_WALLET_VN:5001300,SELLER_WALLET_TH:7001300,SEPA_ES:0x1039778,SEPA_FR:0x112d9b8,BLIK:0xf4540c,APPLE_PAY_SG:1014e3,APPLE_PAY_MY:2014e3,APPLE_PAY_VN:5014e3,ICBC_IBANKING_CN:0x131698c,ICBC_WECHATPAY_CN:0x13169f0,ICBC_EWALLET_CN:0x13169f1,WECHATPAY_V3_CN:0x1316158}),y=Object.freeze({ID_COD:89e3,MPGS_CC:10080});(c=a||(a={}))[c.FoodDriver=50039]="FoodDriver",g.GOOGLE_PAY_SG,g.GOOGLE_PAY_SG_SYBS,g.GOOGLE_PAY_MY,g.GOOGLE_PAY_PH,g.GOOGLE_PAY_TH,g.GOOGLE_PAY_VN,g.GOOGLE_PAY_BR_APCC},16865:(e,t,n)=>{var r=n(1004),i=n(95588).f,o=n(43164),a=n(67841),l=n(68026),s=n(55917),u=n(24549);e.exports=function(e,t){var n,c,d,f,p,_=e.target,h=e.global,v=e.stat;if(n=h?r:v?r[_]||l(_,{}):(r[_]||{}).prototype)for(c in t){if(f=t[c],d=e.dontCallGetSet?(p=i(n,c))&&p.value:n[c],!u(h?c:_+(v?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;s(f,d)}(e.sham||d&&d.sham)&&o(f,"sham",!0),a(n,c,f,e)}}},16982:e=>{e.exports=function(e){try{return!!e()}catch{return!0}}},17349:(e,t,n)=>{var r=n(57925),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},17479:(e,t,n)=>{"use strict";function r(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],a=[],l={},s=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:s,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return l[e.toLowerCase()]},has:function(e){return e.toLowerCase()in l}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),l[t]=l[t]?l[t]+","+n:n}),n(s())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}n.r(t),n.d(t,{default:()=>r})},17588:(e,t,n)=>{"use strict";n.d(t,{lG:()=>d});let r=/\(error: (.*)\)/,i=/captureMessage|captureException/;function o(e,t,n,r){let i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}let a=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,c=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,d=function(...e){let t=e.sort((e,t)=>e[0]-t[0]).map(e=>e[1]);return(e,n=0)=>{let o=[],a=e.split(` `);for(let e=n;e1024)continue;let i=r.test(n)?n.replace(r,"$1"):n;if(!i.match(/\S*Error: /)){for(let e of t){let t=e(i);if(t){o.push(t);break}}if(o.length>=50)break}}var l=o;if(!l.length)return[];let s=Array.from(l);return/sentryWrapped/.test(s[s.length-1].function||"")&&s.pop(),s.reverse(),i.test(s[s.length-1].function||"")&&(s.pop(),i.test(s[s.length-1].function||"")&&s.pop()),s.slice(0,50).map(e=>({...e,filename:e.filename||s[s.length-1].filename,function:e.function||"?"}))}}([30,e=>{let t=a.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){let e=l.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}let[e,n]=f(t[1]||"?",t[2]);return o(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{let t=s.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let e=u.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||"?";return[n,e]=f(n,e),o(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{let t=c.exec(e);return t?o(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}]),f=(e,t)=>{let n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]}},18824:(e,t,n)=>{var r=n(47324),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},19366:(e,t,n)=>{var r=n(56886),i=n(80069),o=n(43670).f,a=r("unscopables"),l=Array.prototype;void 0==l[a]&&o(l,a,{configurable:!0,value:i(null)}),e.exports=function(e){l[a][e]=!0}},19593:(e,t,n)=>{var r=n(57925),i=n(18824),o=n(99842),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},19816:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});let r=(e,t)=>{var n;if(t&&e){let r=null==(n=t.element)?void 0:n.product_label_ids,i=e.label_ids;return!!r&&!!i&&!!r.some(e=>-1!==i.indexOf(e))}return!1}},20260:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21674:(e,t,n)=>{"use strict";n.d(t,{yN:()=>a});var r=n(3138),i=n.n(r);let o=()=>Math.floor(1e6*Math.random()),a=({deviceId:e=`${o()}`,bizName:t})=>{let n,r=Date.now(),a=o(),l=(n=`${e}-${t}-${a}`,i()(n).toString());return`${l}-${r}`}},22779:(e,t,n)=>{e.exports=!n(16982)(function(){var e=(function(){}).bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},23187:(e,t,n)=>{var r=n(55521),i=n(85854),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=i(o,"name"),s=l&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:l,PROPER:l&&"something"===(function(){}).name,CONFIGURABLE:s}},24477:function(e,t,n){var r,i;i=(r=n(54570)).lib.WordArray,r.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l>>6*(3-l)&63));var s=r.charAt(64);if(s)for(;i.length%4;)i.push(s);return i.join("")},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var o=0;o>>6-a%4*2;r[o>>>2]|=(l|s)<<24-o%4*8,o++}return i.create(r,o)}(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},e.exports=r.enc.Base64},24549:(e,t,n)=>{var r=n(16982),i=n(18824),o=/#|\.prototype\./,a=function(e,t){var n=s[l(e)];return n==c||n!=u&&(i(t)?r(t):!!t)},l=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",c=a.POLYFILL="P";e.exports=a},24633:(e,t,n)=>{var r=n(1004);e.exports=function(e){return r[e].prototype}},24825:function(e,t,n){var r;r=n(54570),n(62012),r.pad.NoPadding={pad:function(){},unpad:function(){}},e.exports=r.pad.NoPadding},25376:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(14686),i=n(88456),o=n(89213),a=n(59192),l=n(38784);let s=e=>!!e&&!!e.is_service_by_shopee,u=e=>!!e&&!!e.is_official_shop&&!!e.show_official_shop_label,c={[l.pE.PREFERRED]:(e,t)=>{let{isOfficialMallPath:n}=t||{};return!n&&!!e&&!!e.shopee_verified},[l.pE.OFFICIAL_SHOP]:u,[l.pE.SBS]:s,[l.pE.PREFERRED_PLUS]:(e,t)=>{let{isOfficialMallPath:n}=t||{};return!n&&!!e&&!!e.is_preferred_plus_seller},[l.pE.TOP_PRODUCTS]:()=>!0,[l.pE.S_MART]:(e,{enableShowSMart:t=!1}={})=>!!e&&!!(null==e?void 0:e.is_mart)&&(0,r.o)(e,{enableShowSMart:"SG"===(0,o.JK)()||"MY"===(0,o.JK)()||t}),[l.pE.PREMIUM]:e=>(0,i.Wu)(e),[l.pE.MALL_FBS]:e=>u(e)&&s(e)&&["PH","MY","VN"].includes((0,o.JK)()),[l.pE.FLAGSHIP_SHOP]:e=>{let t=(0,a.A)(e,["label_ids"],[]);return"TW"===(0,o.JK)()&&!!t&&t.includes(l.I2)}};var d=n(40761),f=n(19816);function p(e,t,{isOfficialMallPath:n,enableShowSMart:r}={},i){var o;let a,s,u,_,h;return o=i||(0,d.Uy)((0,d.aU)(function(e,t,{isOfficialMallPath:n,enableShowSMart:r}={}){let i=[];if(e&&e.imageFlag)for(let o of e.imageFlag)if(o.is_predefined){let e=c[o.name];e&&e(t,{isOfficialMallPath:n,enableShowSMart:r})&&i.push(o)}else(0,f.D)(t,{element:o})&&i.push(o);return i}(e,t,{isOfficialMallPath:n,enableShowSMart:r}))),a=[],s=[],o.forEach(e=>{e.is_predefined?a.push(e):s.push(e)}),u=l.lj,a.length>=l.gT[l.pS]&&s.length>=l.gT[l.pE.CUSTOM]&&(u=l.gT),_=u[l.pE.CUSTOM],h=u[l.pS],[...a.slice(0,h),...s.slice(0,_)]}},25406:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r,i=n(65168),o=n(95618);let a=(r||(r=n.t(i,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=i.useState(a());return(0,o.N)(()=>{e||n(e=>null!=e?e:String(l++))},[e]),e||(t?`radix-${t}`:"")}},25809:(e,t,n)=>{"use strict";function r(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}n.d(t,{A:()=>i})},26506:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},26522:(e,t,n)=>{"use strict";function r(e,t,n,r,i,o,a){try{var l=e[o](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function l(e){r(a,i,o,l,s,"next",e)}function s(e){r(a,i,o,l,s,"throw",e)}l(void 0)})}}n.d(t,{A:()=>i})},26559:(e,t,n)=>{"use strict";n.d(t,{qv:()=>p,gC:()=>d,Lp:()=>l.Lp,Jv:()=>f,N:()=>l.N,dl:()=>l.dl,bE:()=>E,aJ:()=>A,HE:()=>m,G$:()=>y,Dx:()=>S});var r,i,o,a,l=n(95224),s=((r={}).GLOBAL="GLOBAL",r.COLLECTION="COLLECTION",r.SHOP="SHOP",r.SHOP_CATEGORY="SHOP_CATEGORY",r.SUBCATEGORY="SUBCATEGORY",r.CATEGORY="CATEGORY",r.ATTRIBUTE="ATTRIBUTE",r.PREFILL="PREFILL",r.VOUCHER="VOUCHER",r.SITE="SITE",r.CATALOGUE="CATALOGUE",r.PRODUCT_LABEL="PRODUCT_LABEL",r.INSURANCE="INSURANCE",r.PDP="PDP",r.MALL="MALL",r.DAILY_DISCOVER_SEARCH_SUGGESTION="DAILY_DISCOVER_SEARCH_SUGGESTION",r.MINI_DETAIL_FEED="MINI_DETAIL_FEED",r.IMAGE_SEARCH="IMAGE_SEARCH",r.OTHER="OTHER",r),u=((i={}).RELEVANCY="relevancy",i.TIME="ctime",i.POPULAR="pop",i.PRICE="price",i.DISTANCE="distance",i.SALES="sales",i.DISCOUNT="discount",i),c=((o={}).ASC="asc",o.DESC="desc",o);let d={MATCH_SHOP:1,MATCH_CATEGORY:2,MATCH_COLLECTION:3,MATCH_SHOP_CATE:5,MATCH_KEYWORD:6,MATCH_ITEM:7,MATCH_ATTRIBUTE:8,MATCH_SKU:9,MATCH_ADDRESS:10},f={SORTBY_POPULAR_DESC:1,SORTBY_LATEST_DESC:2,SORTBY_DISTANCE_DESC:3,SORTBY_PRICE_DESC:4,SORTBY_POPULAR_ASC:5,SORTBY_LATEST_ASC:6,SORTBY_DISTANCE_ASC:7,SORTBY_PRICE_ASC:8,SORTBY_RELEVANCE:9,SORTBY_DISCOUNT_ASC:10,SORTBY_DISCOUNT_DESC:11,SORTBY_SHOP_REVIEW:12,SORTBY_ITEM_SOLD_DESC:13,OFFICIAL_SHOP_PAGE_SEARCH:115,HOME_OFFICIAL_SHOP:116,TRENDING_SHOPS_LANDING:117},p={SHOP_PAGE_SHOP_TAB:"SHOP_PAGE_SHOP_TAB",SHOP_PAGE_PRODUCT_TAB:"SHOP_PAGE_PRODUCT_TAB",SHOP_PAGE_SOLD_OUT:"SHOP_PAGE_SOLD_OUT",SHOP_PAGE_CATEGORIES_HIGHLIGHT:"SHOP_PAGE_CATEGORIES_HIGHLIGHT",SHOP_PAGE_LIKED_ITEMS:"SHOP_PAGE_LIKED_ITEMS",GLOBAL:"GLOBAL_SEARCH",COLLECTION:"COLLECTION",SHOP:"SEARCH_IN_SHOP",MALL:"MALL",SHOP_CATEGORY:"SHOP_CATEGORY",SUBCATEGORY:"SUB_CATEGORY",CATEGORY:"CATEGORY",ATTRIBUTE:"ATTRIBUTE",RECOMMEND_SEARCH_EMPTY:"RECOMMEND_SEARCH_EMPTY",RECOMMEND_SEARCH_TOO_FEW:"RECOMMEND_SEARCH_TOO_FEW",RECOMMEND_FROM_SAME_SHOP:"RECOMMEND_FROM_SAME_SHOP",RECOMMEND_SIMILIAR_PRODUCT:"RECOMMEND_SIMILIAR_PRODUCT",RECOMMEND_POPULAR_PRODUCTS:"RECOMMEND_POPULAR_PRODUCTS",RECOMMEND_YOU_MAY_ALSO_LIKE:"RECOMMEND_YOU_MAY_ALSO_LIKE",OFFICIAL_SHOP_PAGE:"OFFICIAL_SHOP_PAGE",OFFICIAL_SHOP_POPULAR_PRODUCTS:"OFFICIAL_SHOP_POPULAR_PRODUCTS",OFFICIAL_SHOP_JUST_FOR_YOU_PRODUCTS:"OFFICIAL_SHOP_JUST_FOR_YOU_PRODUCTS",DAILY_DISCOVER:"DAILY_DISCOVER",FLASH_SALE_OVERVIEW:"FLASH_SALE_OVERVIEW",FLASH_SALE_LANDING:"FLASH_SALE_LANDING",CATEGORY_BROWSE:"CATEGORY_BROWSE",IMAGE_SEARCH:"IMAGE_SEARCH"};function _(e,t={}){let n,r=(n=s.OTHER,e.shop?(n=s.SHOP,(e.shopCollection||e.originalCategoryId)&&(n=s.SHOP_CATEGORY)):e.collection?n=s.COLLECTION:e.catalogue?n=s.CATALOGUE:e.category?(n=s.CATEGORY,e.subcategory&&(n=s.SUBCATEGORY)):e.searchPrefill?n=s.PREFILL:e.site||e.microsite?n=s.SITE:e.attrId?n=s.ATTRIBUTE:e.promotionId?n=s.VOUCHER:e.keyword&&(n=s.GLOBAL),n),i=[{match_type:v(r),match_id:[h(r,e)]}];return r===s.SHOP_CATEGORY&&i.unshift({match_type:v(s.SHOP),match_id:[h(s.SHOP,e)]}),{keyword:e.keyword,sorttype:function(e){switch(e.sortBy){case u.RELEVANCY:case u.POPULAR:return f.SORTBY_RELEVANCE;case u.TIME:return f.SORTBY_LATEST_DESC;case u.PRICE:if(e.order===c.ASC)return f.SORTBY_PRICE_ASC;return f.SORTBY_PRICE_DESC;case u.SALES:return f.SORTBY_ITEM_SOLD_DESC;case u.DISTANCE:return f.SORTBY_DISTANCE_ASC;default:return}}(e),colorful_blocks:t.colorful_blocks,filter_price_min:+!!e.minPrice,filter_price_max:+!!e.maxPrice,filter_include_sf:+!!e.freeShipping,filter_with_discount:+!!e.withDiscount,wholesale:+!!e.wholesale,filter_item_condition:e.usedItem||e.newItem?1:0,filter_user_verified:+!!e.preferred,filters:i,image_id:t.image_id,candidate_box:t.candidate_box,l1_cat:t.l1_cat}}function h(e,t){let n;switch(e){case s.COLLECTION:n=t.collection;break;case s.CATEGORY:n=t.category;break;case s.SUBCATEGORY:n=t.subcategory;break;case s.SHOP:n=t.shop;break;case s.ATTRIBUTE:n=t.attrId;break;case s.SHOP_CATEGORY:n=t.shopCollection;break;default:n=void 0}return"string"==typeof n?parseInt(n,10):n}function v(e){if(e===s.COLLECTION)return d.MATCH_COLLECTION;if(e===s.CATEGORY||e===s.SUBCATEGORY)return d.MATCH_CATEGORY;if(e===s.SHOP)return d.MATCH_SHOP;if(e===s.ATTRIBUTE)return d.MATCH_ATTRIBUTE;if(e===s.SHOP_CATEGORY)return d.MATCH_SHOP_CATE;else return}function m(e,t,n,r={},i){return{itemid:e.itemid,shopid:e.shopid,discount:e.show_discount,free_shipping:!!(2&e.flag),is_prefered:!!e.shopee_verified,algorithm:e.algorithm,request_id:e.request_id,page_number:e.page_number,cached_result:e.cached_result,campaignid:e.campaignid,query:n,refer_urls:r.refer_url,item_modelid:r.item_modelid,list_type:t,adsid:e.adsid,location_in_ads:e.locationInAds,location:e.location,ads_keyword:e.ads_keyword,match_type:e.match_type,deduction_info:e.deduction_info,abtest_sign:e.recommendation_info||e.info,json_data:e.json_data,product_card:i,video_id:e.video_id,click_area:e.click_area,item_video:e.item_video}}var g=((a=g||{}).IRRELEVANT_ITEM="irrelevant_item",a.INAPPROPRIATE_ITEM="inappropriate_item",a);function y(e){return{itemid:e.itemId?+e.itemId:0,shopid:e.shopId?+e.shopId:0}}function E(e,t,n,r,i){return{operation:l.N.ADD_TO_CART,json_data:i?.json_data,placement:i?.placement,items:[{...e,modelid:t,add_cart_amount:n,add_cart_price:r,json_data:i?.item?.json_data,adsid:i?.item?.adsid,abtest_sign:i?.item?.abtest_sign}]}}function b(e,t,n={}){return{shopid:e.shopid,location:e.location,query:t,algorithm:n.algorithm,list_type:n.listType}}function A(e,t,n){let r=t?_(t):{};return{operation:l.N.SHOP_CLICK,shops:[b(e,r,n)]}}function S(e,t,n){let r=t?_(t):{};return{operation:l.N.SHOP_IMPRESSION,shops:e.map(e=>b(e,r,n))}}},26855:(e,t,n)=>{"use strict";n.d(t,{DX:()=>a});var r=n(2476),i=n(65168),o=n(64546);let a=(0,i.forwardRef)((e,t)=>{let{children:n,...o}=e,a=i.Children.toArray(n),s=a.find(u);if(s){let e=s.props.children,n=a.map(t=>t!==s?t:i.Children.count(e)>1?i.Children.only(null):(0,i.isValidElement)(e)?e.props.children:null);return(0,i.createElement)(l,(0,r.A)({},o,{ref:t}),(0,i.isValidElement)(e)?(0,i.cloneElement)(e,void 0,n):null)}return(0,i.createElement)(l,(0,r.A)({},o,{ref:t}),n)});a.displayName="Slot";let l=(0,i.forwardRef)((e,t)=>{let{children:n,...r}=e;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{o(...e),i(...e)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props),ref:t?(0,o.t)(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});l.displayName="SlotClone";let s=({children:e})=>(0,i.createElement)(i.Fragment,null,e);function u(e){return(0,i.isValidElement)(e)&&e.type===s}},27231:(e,t,n)=>{"use strict";var r=n(16865),i=n(19366),o=n(86214),a=n(71961),l=n(90135),s=n(7712),u=n(56732),c=Array,d=Math.max,f=Math.min;r({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,i,p,_=s(this),h=a(_),v=l(e,h),m=arguments.length,g=0;for(0===m?n=r=0:1===m?(n=0,r=h-v):(n=m-2,r=f(d(u(t),0),h-v)),p=c(i=o(h+n-r));g{var r=n(4152).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",d=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch{f=function(e,t,n){return e[t]=n}}function p(e,n,r,i){var o,a,s,u,c=Object.create((n&&n.prototype instanceof y?n:y).prototype);return l(c,"_invoke",{value:(o=e,a=r,s=new x(i||[]),u=h,function(e,n){if(u===v)throw Error("Generator is already running");if(u===m){if("throw"===e)throw n;return{value:t,done:!0}}for(s.method=e,s.arg=n;;){var r=s.delegate;if(r){var i=function e(n,r){var i=r.method,o=n.iterator[i];if(o===t)return r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=t,e(n,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+i+"' method")),g;var a=_(o,n.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,g;var l=a.arg;return l?l.done?(r[n.resultName]=l.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):l:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,g)}(r,s);if(i){if(i===g)continue;return i}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if(u===h)throw u=m,s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);u=v;var l=_(o,a,s);if("normal"===l.type){if(u=s.done?m:"suspendedYield",l.arg===g)continue;return{value:l.arg,done:s.done}}"throw"===l.type&&(u=m,s.method="throw",s.arg=l.arg)}})}),c}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var h="suspendedStart",v="executing",m="completed",g={};function y(){}function E(){}function b(){}var A={};f(A,u,function(){return this});var S=Object.getPrototypeOf,w=S&&S(S(P([])));w&&w!==o&&a.call(w,u)&&(A=w);var O=b.prototype=y.prototype=Object.create(A);function T(e){["next","throw","return"].forEach(function(t){f(e,t,function(e){return this._invoke(t,e)})})}function I(e,t){var n;l(this,"_invoke",{value:function(i,o){function l(){return new t(function(n,l){!function n(i,o,l,s){var u=_(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then(function(e){n("next",e,l,s)},function(e){n("throw",e,l,s)}):t.resolve(d).then(function(e){c.value=e,l(c)},function(e){return n("throw",e,l,s)})}s(u.arg)}(i,o,n,l)})}return n=n?n.then(l,l):l()}})}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],l=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},27623:(e,t,n)=>{"use strict";var r,i=n(1004),o=n(58770),a=n(18824),l=n(39630),s=n(32697),u=n(63101),c=n(50313),d=i.Function,f=/MSIE .\./.test(s)||l&&((r=i.Bun.version.split(".")).length<3||0==r[0]&&(r[1]<3||3==r[1]&&0==r[2]));e.exports=function(e,t){var n=t?2:1;return f?function(r,i){var l=c(arguments.length,1)>n,s=a(r)?r:d(r),f=l?u(arguments,n):[],p=l?function(){o(s,this,f)}:s;return t?e(p,i):e(p)}:e}},27835:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(15631),i=n(2476),o=n(65168),a=n.n(o),l=n(95368);function s(e,t){let n=Object.create(null);return e&&o.Children.map(e,e=>e).forEach(e=>{n[e.key]=t&&(0,o.isValidElement)(e)?t(e):e}),n}function u(e,t,n){return null!=n[t]?n[t]:e.props[t]}let c=["component","childFactory"],d=Object.values||(e=>Object.keys(e).map(t=>e[t]));class f extends a().Component{constructor(e,t){super(e,t);let n=this.handleExited.bind(this);this.state={contextValue:{isMounting:!0},handleExited:n,firstRender:!0}}componentDidMount(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})}componentWillUnmount(){this.mounted=!1}static getDerivedStateFromProps(e,t){let n,r,{children:i,handleExited:a,firstRender:l}=t;return{children:l?s(e.children,t=>(0,o.cloneElement)(t,{onExited:a.bind(null,t),in:!0,appear:u(t,"appear",e),enter:u(t,"enter",e),exit:u(t,"exit",e)})):(Object.keys(r=function(e,t){let n;function r(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};let i=Object.create(null),o=[];for(let n in e)n in t?o.length&&(i[n]=o,o=[]):o.push(n);let a={};for(let e in t){if(i[e])for(n=0;n{let l=r[t];if(!(0,o.isValidElement)(l))return;let s=t in i,c=t in n,d=i[t],f=(0,o.isValidElement)(d)&&!d.props.in;c&&(!s||f)?r[t]=(0,o.cloneElement)(l,{onExited:a.bind(null,l),in:!0,exit:u(l,"exit",e),enter:u(l,"enter",e)}):c||!s||f?c&&s&&(0,o.isValidElement)(d)&&(r[t]=(0,o.cloneElement)(l,{onExited:a.bind(null,l),in:d.props.in,exit:u(l,"exit",e),enter:u(l,"enter",e)})):r[t]=(0,o.cloneElement)(l,{in:!1})}),r),firstRender:!1}}handleExited(e,t){let n=s(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(t=>{let n=(0,i.A)({},t.children);return delete n[e.key],{children:n}}))}render(){let e=this.props,{component:t,childFactory:n}=e,i=(0,r.A)(e,c),{contextValue:o}=this.state,s=d(this.state.children).map(n);return(delete i.appear,delete i.enter,delete i.exit,null===t)?(a()).createElement(l.A.Provider,{value:o},s):(a()).createElement(l.A.Provider,{value:o},(a()).createElement(t,i,s))}}f.propTypes={},f.defaultProps={component:"div",childFactory:e=>e};let p=f},28127:(e,t,n)=>{"use strict";var r=n(16865),i=n(48711),o=n(7712),a=Array;r({target:"Array",proto:!0},{with:function(e,t){return i(o(this),a,e,t)}})},28357:function(e,t,n){e.exports=n(54570).enc.Utf8},29206:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g});var r=n(15631),i=n(65168),o=n.n(i),a=n(82055),l=n.n(a),s=n(95368),u=n(45834);let c=["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"],d="unmounted",f="exited",p="entering",_="entered",h="exiting";class v extends o().Component{constructor(e,t){let n;super(e,t);let r=t&&!t.isMounting?e.enter:e.appear;this.appearStatus=null,e.in?r?(n=f,this.appearStatus=p):n=_:n=e.unmountOnExit||e.mountOnEnter?d:f,this.state={status:n},this.nextCallback=null}static getDerivedStateFromProps(e,t){let{in:n}=e;return n&&t.status===d?{status:f}:null}componentDidMount(){this.updateStatus(!0,this.appearStatus)}componentDidUpdate(e){let t=null;if(e!==this.props){let{status:e}=this.state;this.props.in?e!==p&&e!==_&&(t=p):(e===p||e===_)&&(t=h)}this.updateStatus(!1,t)}componentWillUnmount(){this.cancelNextCallback()}getTimeouts(){let e,t,n,{timeout:r}=this.props;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}}updateStatus(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){let e=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this);e&&(0,u.F)(e)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:d})}performEnter(e){let{enter:t}=this.props,n=this.context?this.context.isMounting:e,[r,i]=this.props.nodeRef?[n]:[l().findDOMNode(this),n],o=this.getTimeouts(),a=n?o.appear:o.enter;(e||t)&&1?(this.props.onEnter(r,i),this.safeSetState({status:p},()=>{this.props.onEntering(r,i),this.onTransitionEnd(a,()=>{this.safeSetState({status:_},()=>{this.props.onEntered(r,i)})})})):this.safeSetState({status:_},()=>{this.props.onEntered(r)})}performExit(){let{exit:e}=this.props,t=this.getTimeouts(),n=this.props.nodeRef?void 0:l().findDOMNode(this);e?(this.props.onExit(n),this.safeSetState({status:h},()=>{this.props.onExiting(n),this.onTransitionEnd(t.exit,()=>{this.safeSetState({status:f},()=>{this.props.onExited(n)})})})):this.safeSetState({status:f},()=>{this.props.onExited(n)})}cancelNextCallback(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)}safeSetState(e,t){t=this.setNextCallback(t),this.setState(e,t)}setNextCallback(e){let t=!0;return this.nextCallback=n=>{t&&(t=!1,this.nextCallback=null,e(n))},this.nextCallback.cancel=()=>{t=!1},this.nextCallback}onTransitionEnd(e,t){this.setNextCallback(t);let n=this.props.nodeRef?this.props.nodeRef.current:l().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(!n||r)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){let[e,t]=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback];this.props.addEndListener(e,t)}null!=e&&setTimeout(this.nextCallback,e)}render(){let e=this.state.status;if(e===d)return null;let t=this.props,{children:n}=t,i=(0,r.A)(t,c);return(o()).createElement(s.A.Provider,{value:null},"function"==typeof n?n(e,i):(o()).cloneElement(o().Children.only(n),i))}}function m(){}v.contextType=s.A,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},v.UNMOUNTED=d,v.EXITED=f,v.ENTERING=p,v.ENTERED=_,v.EXITING=h;let g=v},29296:(e,t,n)=>{"use strict";var r,i;n.d(t,{N:()=>r}),(i=r||(r={})).CUSTOM="CUSTOM",i.LPG="LPG",i.PREVIEW="PREVIEW",i.FLASH_SALE="FLASH_SALE"},29508:(e,t,n)=>{var r=n(22779),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},29943:(e,t,n)=>{"use strict";n.d(t,{N:()=>i,Uh:()=>b,lB:()=>E,_H:()=>S});var r=n(72140),i={IMPRESSION:1,CLICK:2,VIEW:3,ADD_TO_CART:4,PLACE_ORDER:5,SHOP_IMPRESSION:1001,SHOP_CLICK:1002,CLOSE_BANNER:6};function o(e){var t=[];if(t[0]=null,void 0!==e.keyword?t[1]=e.keyword:t[1]=null,void 0!==e.sorttype?t[2]=e.sorttype:t[2]=9,void 0!==e.colorful_blocks){t[3]=[];for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return"".concat(e,"_").concat(t.toString())}n(75866);var u=self&&self.innerWidth<=640?80:300;self.__INTERSECTION_OBSERVER||(self.__INTERSECTION_OBSERVER={OBSERVER_MAP:new Map,CALLBACK_MULTIMAP:new Map});var c=self.__INTERSECTION_OBSERVER.OBSERVER_MAP,d=self.__INTERSECTION_OBSERVER.CALLBACK_MULTIMAP,f="0px 0px ".concat(u,"px 0px"),p=s(f,0);d.set(p,new WeakMap);var _=new self.IntersectionObserver(h(p),{rootMargin:f,threshold:0});function h(e){var t=d.get(e);return function(e){var n,r=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=(0,l.A)(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(a)throw i}}}}(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.target;if(t&&t.has(o)){var a=t.get(o)||{},s=a.enterViewCallback,u=a.leaveViewCallback,c=a.intersectionChangeCallback;i.isIntersecting?s&&s(i):u&&u(i),c&&c(i)}}}catch(e){r.e(e)}finally{r.f()}}}function v(e,t){var n=null!=e?e:f,r=null!=t?t:0,i=s(n,r),o=i?c.get(i):_;return o||(d.set(i,new WeakMap),o=new self.IntersectionObserver(h(i),{rootMargin:n,threshold:r}),c.set(i,o)),{observer:o,callbackMap:d.get(i)}}c.set(p,_);var m=new WeakMap,g=new WeakMap;function y(e){var t=e.target;if(e.intersectionRatio<.5){if(g.has(t)){var n=g.get(t);n&&clearTimeout(n),g.delete(t)}return}m.has(t)&&g.set(t,setTimeout(function(){g.delete(t);var e,n,r,i,o=m.get(t);"function"==typeof o&&(r=(n=v((e={threshold:.5,rootMargin:"0px 0px 0px 0px"}).rootMargin,e.threshold)).observer,i=n.callbackMap,t&&r&&i&&i.has(t)&&(i.delete(t),r.unobserve(t)),o())},1e3))}var E=function(e,t){if(!(!e||m.has(e))){var n,r,i,o,a,l,s,u,c;m.set(e,t),r=(n={threshold:.5,rootMargin:"0px 0px 0px 0px",intersectionChangeCallback:y}).rootMargin,i=n.threshold,o=n.enterViewCallback,a=n.leaveViewCallback,l=n.intersectionChangeCallback,u=(s=v(r,i)).observer,c=s.callbackMap,e&&c&&(c.set(e,{enterViewCallback:o,leaveViewCallback:a,intersectionChangeCallback:l}),u.observe(e))}};function b(){return{userid:parseInt(A("SPC_U")||"",10)||void 0,sessionid:A("SPC_R_T_ID")||void 0,token:A("SPC_R_T_IV")||void 0,deviceid:A("SPC_F")||void 0}}function A(e){if(self.document&&"string"==typeof self.document.cookie){var t=new RegExp("(?:^|;\\s?)".concat(e,"=([^;$]+)")).exec(self.document.cookie||"");if(t)return t[1]}}function S(e,t){if(!(0,a.MI)("banner_preview_token")){var n,i=function(e){var t,n,r=[];if(r[0]=null,void 0!==e.userid?r[1]=e.userid:r[1]=null,void 0!==e.sessionid?r[2]=e.sessionid:r[2]=null,void 0!==e.deviceid?r[3]=e.deviceid:r[3]=null,void 0!==e.client_ip?r[4]=e.client_ip:r[4]=null,void 0!==e.platform?r[5]=e.platform:r[5]=null,void 0!==e.operation?r[6]=e.operation:r[6]=null,void 0!==e.items){r[7]=[];for(var i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ABCache=void 0;var r,i=(r=n(95275))&&r.__esModule?r:{default:r},o=n(11139),a=n(31821),l=n(66455),s=n(65835);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t{"use strict";n.d(t,{Oh:()=>o});var r=n(65168);let i=0;function o(){(0,r.useEffect)(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:a()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},30241:(e,t,n)=>{var r=n(7194),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}},30886:(e,t,n)=>{e.exports=n(14368)()},31821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowInjectKey=t.url2EnvMap=t.trafficAPI=t.reqHeaders=t.noneLiveEnv=t.nocache=t.localStorageKey=t.liveEnvUrl=t.env2UrlMap=t.env2AbEnv=t.defaultConfig=t.countryPostfixMap=t.byFeatureAPI=void 0;var r=n(66455);t.trafficAPI="api/v4/abtest/traffic/get_web_experiments",t.byFeatureAPI="api/v4/abtest/traffic/get_feature_by_feature_key",t.localStorageKey="__abtest__",t.windowInjectKey="__abtest__",t.nocache=0,t.liveEnvUrl="",t.defaultConfig={cacheTime:5,isInitFetch:!1};var i={live:"",liveish:"live-test",uat:"uat",test:"test",staging:"staging",stable:"test-stable"};t.env2UrlMap=i,t.noneLiveEnv=Object.values(i).filter(function(e){return""!==e}),t.url2EnvMap=(0,r.flip)(i),t.env2AbEnv={staging:"test","test-stable":"test",enableStaging:function(e){e?this.staging="staging":this.staging="test"}},t.reqHeaders={"Content-Type":"application/json"},t.countryPostfixMap={shopeepay:"shopeepay.",shopee:"shopee."}},32697:e=>{e.exports="u">typeof navigator&&String(navigator.userAgent)||""},33249:function(e,t,n){var r;!function(i){"use strict";var o="function",a="undefined",l="object",s="string",u="major",c="model",d="name",f="type",p="vendor",_="version",h="architecture",v="console",m="mobile",g="tablet",y="smarttv",E="wearable",b="embedded",A="Amazon",S="Apple",w="ASUS",O="BlackBerry",T="Browser",I="Chrome",C="Firefox",R="Google",x="Huawei",P="Microsoft",L="Motorola",N="Opera",D="Samsung",k="Sharp",M="Sony",j="Xiaomi",H="Zebra",B="Facebook",F="Chromium OS",U="Mac OS",G=" Browser",Y=function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},V=function(e){for(var t={},n=0;n0?2===a.length?typeof a[1]==o?this[a[0]]=a[1].call(this,u):this[a[0]]=a[1]:3===a.length?typeof a[1]!==o||a[1].exec&&a[1].test?this[a[0]]=u?u.replace(a[1],a[2]):void 0:this[a[0]]=u?a[1].call(this,u,a[2]):void 0:4===a.length&&(this[a[0]]=u?a[3].call(this,u.replace(a[1],a[2])):void 0):this[a]=u||void 0;c+=2}},X=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r2&&(e[c]="iPad",e[f]=g),e},this.getEngine=function(){var e={};return e[d]=void 0,e[_]=void 0,z.call(e,r,y.engine),e},this.getOS=function(){var e={};return e[d]=void 0,e[_]=void 0,z.call(e,r,y.os),E&&!e[d]&&v&&v.platform&&"Unknown"!=v.platform&&(e[d]=v.platform.replace(/chrome os/i,F).replace(/macos/i,U)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===s&&e.length>500?q(e,500):e,this},this.setUA(r),this};Z.VERSION="0.7.39",Z.BROWSER=V([d,_,u]),Z.CPU=V([h]),Z.DEVICE=V([c,p,f,v,m,y,g,E,b]),Z.ENGINE=Z.OS=V([d,_]),typeof t!==a?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?void 0===(r=(function(){return Z}).call(t,n,t,e))||(e.exports=r):typeof i!==a&&(i.UAParser=Z);var Q=typeof i!==a&&(i.jQuery||i.Zepto);if(Q&&!Q.ua){var ee=new Z;Q.ua=ee.getResult(),Q.ua.get=function(){return ee.getUA()},Q.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)Q.ua[n]=t[n]}}}("object"==typeof window?window:this)},34457:(e,t)=>{"use strict";function n(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var r=n();r.withExtraArgument=n,t.A=r},34569:(e,t,n)=>{var r,i,o=n(1004),a=n(32697),l=o.process,s=o.Deno,u=l&&l.versions||s&&s.version,c=u&&u.v8;c&&(i=(r=c.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},34874:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(2476),i=n(15631),o=n(68287),a=n(25809),l=n(65168),s=n.n(l),u=n(29206),c=n(45834);function d(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}let f=["children","classNames","nodeRef","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],p=(e,t)=>e&&t&&t.split(" ").forEach(t=>(0,a.A)(e,t)),_=e=>{let{children:t,classNames:n="",nodeRef:a,onEnter:_,onEntering:h,onEntered:v,onExit:m,onExiting:g,onExited:y}=e,E=(0,i.A)(e,f),b=(0,l.useRef)(null),A=a||b,S=(0,l.useRef)({appear:{},enter:{},exit:{}}),w=(e,t)=>[A.current,"boolean"==typeof e?e:!!t],O=e=>{let t="string"==typeof n,r=t&&n?n+"-":"",i=t?""+r+e:n[e],o=t?i+"-active":n[e+"Active"],a=t?i+"-done":n[e+"Done"];return{baseClassName:i,activeClassName:o,doneClassName:a}},T=(e,t,n)=>{let r=O(t)[n+"ClassName"],{doneClassName:i}=O("enter");if("appear"===t&&"done"===n&&i&&(r=r?r+" "+i:i),"active"===n&&e&&(0,c.F)(e),r){let i;S.current[t][n]=r,i=r,e&&i&&i.split(" ").forEach(t=>(0,o.A)(e,t))}},I=(e,t)=>{let{base:n,active:r,done:i}=S.current[t];S.current[t]={},n&&p(e,n),r&&p(e,r),i&&p(e,i)},C=(e,t)=>{let[n,r]=w(e,t);I(n,"exit"),T(n,r?"appear":"enter","base"),_&&_(e,t)},R=(e,t)=>{let[n,r]=w(e,t);T(n,r?"appear":"enter","active"),h&&h(e,t)},x=(e,t)=>{let[n,r]=w(e,t),i=r?"appear":"enter";I(n,i),T(n,i,"done"),v&&v(e,t)},P=e=>{let[t]=w(e);I(t,"appear"),I(t,"enter"),T(t,"exit","base"),m&&m(e)},L=e=>{let[t]=w(e);T(t,"exit","active"),g&&g(e)},N=e=>{let[t]=w(e);I(t,"exit"),T(t,"exit","done"),y&&y(e)};if(a)return(s()).createElement(u.Ay,(0,r.A)({},E,{nodeRef:a,onEnter:C,onEntered:x,onEntering:R,onExit:P,onExiting:L,onExited:N}),t);if("function"==typeof t||!t)return(s()).createElement(u.Ay,(0,r.A)({},E,{nodeRef:A,onEnter:C,onEntered:x,onEntering:R,onExit:P,onExiting:L,onExited:N}),t);let D=t&&"ref"in t?t.ref:null,k=s().useMemo(()=>null==A&&null==D?null:e=>{d(A,e),d(D,e)},[A,D]),M="string"==typeof t.type?(s()).cloneElement(t,{ref:k}):(s()).createElement("div",{ref:k},t);return(s()).createElement(u.Ay,(0,r.A)({},E,{nodeRef:A,onEnter:C,onEntered:x,onEntering:R,onExit:P,onExiting:L,onExited:N}),M)};_.defaultProps={classNames:""},_.propTypes={};let h=_},35161:(e,t,n)=>{var r=n(12935),i=n(85653),o=n(22779),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},35548:function(e,t,n){var r,i,o,a,l,s,u;o=(i=(r=n(54570)).lib).WordArray,a=i.Hasher,l=r.algo,s=[],u=l.SHA1=a.extend({_doReset:function(){this._hash=new o.init([0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],l=n[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var c=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=c<<1|c>>>31}var d=(r<<5|r>>>27)+l+s[u];u<20?d+=(i&o|~i&a)+0x5a827999:u<40?d+=(i^o^a)+0x6ed9eba1:u<60?d+=(i&o|i&a|o&a)-0x70e44324:d+=(i^o^a)-0x359d3e2a,l=a,a=o,o=i<<30|i>>>2,i=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[(r+64>>>9<<4)+14]=Math.floor(n/0x100000000),t[(r+64>>>9<<4)+15]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}}),r.SHA1=a._createHelper(u),r.HmacSHA1=a._createHmacHelper(u),e.exports=r.SHA1},36409:function(e,t,n){e.exports=function(e){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init;(t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"u">typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)}).prototype=t}return e.lib.WordArray}(n(54570))},37339:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise(function(n,r){n(t.getItem(e))})},setItem:function(e,n){return new Promise(function(r,i){r(t.setItem(e,n))})},removeItem:function(e){return new Promise(function(n,r){n(t.removeItem(e))})}}};var r,i=(r=n(61421))&&r.__esModule?r:{default:r}},38464:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(65168);function i(e,t=[]){let n=[],o=()=>{let t=n.map(e=>(0,r.createContext)(e));return function(n){let i=(null==n?void 0:n[e])||t;return(0,r.useMemo)(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,i){let o=(0,r.createContext)(i),a=n.length;function l(t){let{scope:n,children:i,...l}=t,s=(null==n?void 0:n[e][a])||o,u=(0,r.useMemo)(()=>l,Object.values(l));return(0,r.createElement)(s.Provider,{value:u},i)}return n=[...n,i],l.displayName=t+"Provider",[l,function(n,l){let s=(null==l?void 0:l[e][a])||o,u=(0,r.useContext)(s);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return(0,r.useMemo)(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},38784:(e,t,n)=>{"use strict";var r,i;n.d(t,{I2:()=>s,gT:()=>l,lj:()=>a,pE:()=>r,pS:()=>o}),(i=r||(r={})).CUSTOM="CUSTOM",i.PREFERRED="PREFERRED",i.OFFICIAL_SHOP="OFFICIAL_SHOP",i.SBS="SBS",i.PREFERRED_PLUS="PREFERRED_PLUS",i.TOP_PRODUCTS="TOP_PRODUCTS",i.S_MART="S_MART",i.PREMIUM="PREMIUM",i.MALL_FBS="MALL_FBS",i.FLAGSHIP_SHOP="FLAGSHIP_SHOP";let o="SYSTEM_IMAGE_FLAG",a={[o]:1,[r.CUSTOM]:2},l={[o]:1,[r.CUSTOM]:1},s=1000071},39630:e=>{e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},39851:(e,t,n)=>{"use strict";let r,i,o,a,l,s,u,c,d,f,p,_,h,v,m;n.d(t,{E0:()=>e2,nY:()=>e3,KG:()=>eQ,Uz:()=>e1,fx:()=>eJ,gh:()=>e0,xk:()=>eZ});var g=n(69610),y=n(58073),E=n(69733);function b(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{}}function A(e,t,n){let r=e[t],i=n(r);b(i,"__apms_original__",r),e[t]=i}var S=n(13769);let w=[],O=!1;function T(){O||(O=!0,A(E.jf,y.Bb,e=>(t,n)=>{let r=(0,S.J1)((0,S.Nw)(t)?t.url:String(t));if((0,g.bz)(r))return e(t,n);let i={url:r,method:(0,S.hg)(t,n),headers:{...n?.headers},referrer:n?.referrer||((0,S.Nw)(t)?t.referrer:y.u1)},o=w.map(e=>e(i));return e(t,n).then(e=>(o.forEach(t=>t[0](e)),e),e=>{throw o.forEach(t=>t[1](e)),e})}))}let I=[],C=!1,R=y.np,x=E.jf.PerformanceObserver?.supportedEntryTypes?.includes(R);var P=n(98790);let L=[],N=!1;function D(){N||(N=!0,(0,P.q2)(E.jf,y.ff,e=>{let t=e.error;if(!t){let{message:n,type:r,filename:i,lineno:o,colno:a}=e;if(!i||!o||!a||!n)return;(t=Error(n||y.HV)).name=r,t.stack=`${i}:${o}:${a}`}L.forEach(n=>n(t,e))},!0))}let k=[],M=!1,j=[],H=!1,B=["debug","info","warn","error","log","assert","trace"],F="console",U={...E.jf[F]};function G(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}let Y=[],V=!1,W="_apmsCaptured",K="_apmsId",q="__apms_instrumentation_handlers__",z=[],X=!1,$="history",J=E.GZ.pathname;var Z=n(88927);let Q=[/^(.*)\n\s+(at)/,/^(.*)\/<@/];function ee(e){if(!e)return y.u1;let t=e.split(` `)[0];if(/^\s*at\s/.test(t)||/^\s*[^@\n]*@[^:]+:\d+:\d+/.test(t))return e;let n=e;for(let t of Q)if(t.test(e)){n=e.replace(t,"$2");break}return n}function et(){let e;if((0,S.Tn)(Error.captureStackTrace)){let t={message:"",stack:""};Error.captureStackTrace(t),e=t.stack}else e=Error().stack;if(e)return function(e,t=/capture(Event|Exception|Message)/){if(!e)return;let n=e.split(` `),r=0;for(;r{let n=(0,S.Kg)(t)?t:JSON.stringify(t);en.setItem(e,n)})}function ea(e){return ei(()=>{let t=en.getItem(e);if((0,S.Kg)(t))return JSON.parse(t)})}function el(e){let t=[];return ei(()=>{let n=en.length,r=RegExp("^"+e);for(let e=0;e{en.removeItem(e)})}function eu(e,t){var n;if(!er)return()=>{};let r=-1,i=!1;return n=async function(){if(!i)try{for(let n of(i=!0,el(e))){let e=ea(n);if(es(n),e)try{await t(e)}catch{}}}catch{}finally{i=!1}},(0,P.p4)(n),(0,P.q2)(E.jf,"online",n),function(t){let n=(0,S.tB)();r+6e4e>t?-1:1).slice(29))es(e)}(e),r=n),eo(`${e}data_${+new Date}`,t)}}var ec=n(48017),ed=n.n(ec);async function ef({url:e,data:t,token:n,apiKey:r}){let i,o,a=JSON.stringify(t),l=a.length<=32768,s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json",...n?{Authorization:`Bearer ${n}`}:{},...r?{"Apm-Signature-Headers":(i=+new Date,JSON.stringify({api_key:r,time_stamp:i,nonce:o=Math.floor(0x7fffffff*Math.random()),obf_sig:ed()(`${r}_${i}_${o}_${a}`).toString()}))}:{}},keepalive:l,body:a}),u=await s.json();return 200===s.status?u:Promise.reject(u)}var ep=n(3138),e_=n.n(ep),eh=n(44789),ev=n.n(eh);class em extends Error{}function eg(e){throw new em(e)}function ey(e){return e instanceof em}async function eE(e,t,n=2){let r=0;for(;r`${o}/dem/entrance/v1/apps/${r}/tags/${e}/event/json`,s=l("web-performance"),u=l("web-custom"),c=(t={host:o,appName:r,secret:a,env:i},n=null,(...e)=>(n||(n=function({host:e,appName:t,secret:n,env:r}){let i=null,o=y.u1,a=0,l=0,s=`mdap_persisttk_${t}_${r}_persisttk`;async function u(){return i||(i=d())}async function c(){if(i)return i;let e=+new Date,t=e>l,n=e-a>6e4;if(!o||t)return n||eg("login failed"),u()}async function d(){if(function(){let e=ea(s);if(!e)return!1;let{token:t,maxAge:n,lastUpdate:r}=e;if(o&&o===t)return es(s),!1;let i=Date.now();return!!n&&!!r&&i>=r&&i(await c(),await e(o)),async e=>{let t=e?.code;if(!eb.includes(t))throw e;await u()})}}(t)),n(...e))),d=eu(`mdap_offlinestore_${r}_`,f);async function f(e){let t="web-performance"===e.tag?s:u;return await c(async n=>ef({url:t,data:e,token:n}))}return async function(e,t){if(t)return void d(e);try{return await f(e)}catch{d(e)}}}let eS=(e,t)=>`https://patronus${e}.idata.shopeemobile.com/multi-app/web-receiver/api/v1/receiver/web/${t}/signature`;var ew=n(33249),eO=n.n(ew);let eT="_apms_sdk_fingerprint",eI="__APMS_SESSION_ID__",eC="__MDAP_SESSION_ID__",eR=E.jf,ex=eR[eI]||eR[eC]||G();eR[eI]=ex,eR[eC]=ex;let eP=function(e,t){return e||(e=t)}(eR.__APMS_SESSION_START_TIME__,new Date().toISOString()),eL=(m=()=>f||(f=new(eO())),{get connection(){return p||(p=function(){if(!navigator?.connection)return{connection_type:y.HV};{let e=navigator.connection;return{connection_type:e.effectiveType||e.type||y.HV,connection_downlink:e.downlink?1024*e.downlink:-1,connection_rtt:e.rtt}}}())},get browser(){var e;let t,n;return _||(t=(e=m()).getBrowser(),n=e.getEngine(),_={browser:e.getUA(),browser_name:t.name||y.u1,browser_version:t.version||y.u1,engine_name:n.name||y.u1,engine_version:n.version||y.u1})},get screen(){let e,t;return h||(e=E.jf.devicePixelRatio,t=E.jf.screen,h={screen_dpr:e?parseFloat(e.toFixed(2)):0,screen_height:t.height||0,screen_width:t.width||0,orientation:t.orientation?.type??y.u1})},get device(){var e;let t,n;return v||(t=(e=m()).getOS(),n=e.getDevice(),v={os_name:t.name||y.u1,os_version:t.version||y.u1,device_name:n.model??n.type??y.u1,device_id:y.u1})}}),eN=function(){let e=function(){if(er)return ea(eT);let e=E.qQ.cookie.split("; ").find(e=>e.startsWith(eT+"="));return e?e.split("=")[1]:null}();if(e)return e;let t=G();return er?eo(eT,t):E.qQ.cookie=`${eT}=${t}; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/`,t}();function eD(e,t,n){return e.type===y.ed?n:t}function ek(e){let{device:t,browser:n,screen:r,connection:i}=eL;return{event_timestamp:(0,S.tB)(),app_name:e.app_name,app_version:e.app_version||y.HV,app_build_id:e.app_build_id||e.app_version||y.HV,user_id:e.user_id,sdk_name:"mdap_web_sdk",sdk_version:"0.4.27",session_id:ex,tag:"web-performance",...t,device_id:eN,data:{...n,...r,...i,region:e.region??y.HV,environment:e.environment??y.u1}}}let eM={},ej={},eH=[],eB=!1;function eF(e,t){ej[e]||(ej[e]=t),function(){!eB&&(eH.push((()=>(eB=!0,()=>{eB=!1}))()),eH.push((()=>{let e="onpagehide"in E.jf?"pagehide":"unload",t=()=>{eW(eY=!0)};return(0,P.q2)(E.jf,e,t,!1),()=>(0,P.f)(E.jf,e,t,!1)})()),eH.push((()=>{let e=()=>{"hidden"===E.qQ.visibilityState&&eV()},t="visibilitychange";return(0,P.q2)(E.qQ,t,e),()=>(0,P.f)(E.qQ,t,e)})()))}()}function eU(e,t){eM[e]||(eM[e]=[]),eM[e].push(t),eG&&(0,P.DJ)(eG),eG=(0,P.wg)(()=>{(0,P.p4)(eV),eG=null},1e4)}let eG=null,eY=!1;function eV(){return eW(eY)}function eW(e){let t=[];for(let n in ej){let r=ej[n],i=eM[n];i?.length&&(t.push(r(i,e)),i.length=0)}return Promise.all(t)}function eK(e){return Math.random(){},e$=!1;function eJ(){var e;if(e$||(e$=!0,!g.Ft))return;let t=function(){if(!g.OF)return{__labels:{},__addData:()=>{}};let e=g.OF,t=eA(e);eF("v1",async(r,i)=>{for(;r.length>0;){let o=r.splice(0,300),a={...ek(e),labels:{...n.__labels}},l=[],s=[];for(let{type:e,data:t}of o)switch(e){case y.lR:s.push(t);break;case y.tn:l.push(t);break;case y.Vl:a.data.page_performance=t}l.length&&(a.data.entries=l),s.length&&(a.data.api_performances=s),await t(a,i)}}),eF("a_v1",async(n,r)=>{for(;n.length>0;){let i=n.splice(0,300),o=ek(e);o.tag="web-custom";let a=[];for(let{data:e}of i)a.push(e);o.data.custom_accums=a,await t(o,r)}});let n={__labels:{},__addData:e=>{eU(eD(e,"v1","a_v1"),e)}};return n}();if(eK(g.ii)){let e=0,n=["duration","connectEnd","connectStart","responseStart","responseEnd","requestStart"];I.push(e=>{let r=e.name;(0,S.Kg)(r)&&(0,g.$D)(r)&&(n.every(t=>!e[t])||t.__addData({type:y.lR,data:{url:(0,S.J1)(r),page_url:(0,S.kl)(),start_time:(0,S.LI)(e.startTime),duration:(0,S.LI)(e.duration),connect_start:(0,S.LI)(e.connectStart),connect_end:(0,S.LI)(e.connectEnd),domain_lookup_start:(0,S.LI)(e.domainLookupStart),domain_lookup_end:(0,S.LI)(e.domainLookupEnd),redirect_start:(0,S.LI)(e.redirectStart),redirect_end:(0,S.LI)(e.redirectEnd),request_start:(0,S.LI)(e.requestStart),response_start:(0,S.LI)(e.responseStart),response_end:(0,S.LI)(e.responseEnd),worker_start:(0,S.LI)(e.workerStart),fetch_start:(0,S.LI)(e.fetchStart),secure_connection_start:(0,S.LI)(e.secureConnectionStart),customized_data:(0,S.dp)(g._A),page_name:g._A.page_name}}))});let r=[y.Cd,y.Cd];w.push(({url:n,method:i,referrer:o})=>{let a=(0,S.tB)();if(!(0,g.$D)(n))return r;let l=(0,S.kl)();return[r=>{let s=(0,S.tB)(),u=e++;r||(r={}),r._MDAP_DATA_ID_=u;let c={type:y.tn,data:{type:y.lR,start_timestamp:a,end_timestamp:s,duration:s-a,page_url:l,url:n,http_method:i,http_referer:o,http_status_code:r?.status,logic_status_code:0,customized_data:(0,S.dp)(g._A),page_name:g._A.page_name}},d=e=>{e&&(c.data.logic_status_code=e),t.__addData(c),delete eq[u],(0,P.DJ)(f)},f=(0,P.wg)(d,3e3);eq[u]=d},e=>{let r=Date.now();t.__addData({type:y.tn,data:{type:y.lR,start_timestamp:a,end_timestamp:r,duration:r-a,page_url:l,url:n,http_method:i,http_referer:o,http_status_code:0,logic_status_code:0,customized_data:{...(0,S.dp)(g._A),err_msg:String(e)},page_name:g._A.page_name}})}]})}if(eK(g.st)&&(t.__labels.supportObserveType=E.jf.PerformanceObserver?.supportedEntryTypes?.includes(y.np)?"true":"false",t.__labels.supportGetEntriesByType=(0,S.Tn)(E.jf.performance?.getEntriesByType)?"true":"false",e=async e=>{let{name:n,initiatorType:r}=e,i=(0,S.pJ)(n,r);if(!i||!(0,g.tI)(n))return;let{startTime:o,duration:a,requestStart:l,fetchStart:s,redirectStart:u,redirectEnd:c,responseStart:d,responseEnd:f,connectStart:p,connectEnd:_,domainLookupStart:h,domainLookupEnd:v,secureConnectionStart:m,workerStart:E,decodedBodySize:b,transferSize:A,encodedBodySize:w,responseStatus:O}=e,T=(0,S.uc)(),I=(0,S.LI)(T+o),C=f>0?(0,S.LI)(T+f):I,R={type:y.np,url:n,customized_data:(0,S.dp)(g._A),page_name:g._A.page_name,start_timestamp:I,end_timestamp:C,duration:(0,S.tv)(a??C-I),page_url:(0,S.kl)(),http_method:y.Xs,logic_status_code:0,http_status_code:O||200,resource_type:i,resource_cache_type:(0,S.Rv)(e),resource_load_speed:(0,S.kg)(e),resource_query_cache:(0,S.tv)(h-s,0),resource_load_time:(0,S.tv)(f-d,0),connect_end:(0,S.tv)(_),connect_start:(0,S.tv)(p),decoded_body_size:(0,S.tv)(b),domain_lookup_end:(0,S.tv)(v),domain_lookup_start:(0,S.tv)(h),fetch_start:(0,S.tv)(s),initiator_type:r||y.HV,next_hop_protocol:(0,S.Ll)(e),redirect_end:(0,S.tv)(c),redirect_start:(0,S.tv)(u),request_start:(0,S.tv)(l),response_end:(0,S.tv)(f),response_start:(0,S.tv)(d),secure_connection_start:(0,S.tv)(m),time_origin:(0,S.LI)((0,S.uc)()),transfer_size:(0,S.tv)(A),worker_start:(0,S.tv)(E),encoded_body_size:(0,S.tv)(w)};R.encoded_body_size>0x8000000000000000&&(R.encoded_body_size=-1,R.overflow=!0),t.__addData({type:y.tn,data:R})},I.push(e),!x)){let e=new Set;L.push((n,r)=>{let i,o=r.target,a=o?.localName;if("link"===a)i=o.href;else{if("script"!==a&&"img"!==a)return;i=o.src}if(!(0,g.tI)(i)||e.has(i))return;e.add(i);let l=(0,S.uc)(),s=(0,S.LI)(r.timeStamp+l);t.__addData({type:y.tn,data:{type:y.np,url:i,customized_data:(0,S.dp)(g._A),page_name:g._A.page_name,http_method:y.Xs,start_timestamp:s,end_timestamp:s,duration:1,page_url:(0,S.kl)(),logic_status_code:0,http_status_code:400,resource_type:(0,S.pJ)(i,a),resource_cache_type:y.HV}})})}let n=g.OF?.mall_fe_custom_config||{};if(eK(n.perfSampling??g.qV)){let e=-1,r=-1,i=-1,o=-1,a={},l=!1,s=()=>{l||e<0||r<0||i<0||o<0||u()};(0,Z.onCLS)(t=>{e=(0,S.LI)(1e3*t.value),s()}),(0,Z.onFID)(e=>{r=(0,S.LI)(e.value),s()}),(0,Z.onLCP)(e=>{i=(0,S.LI)(e.value);let{element:t,url:n,timeToFirstByte:r,elementRenderDelay:o,resourceLoadDelay:l,resourceLoadDuration:u}=e.attribution;a.lcp_element=t,a.lcp_url=n,a.lcp_ttfb=(0,S.LI)(r),a.lcp_erd=(0,S.LI)(o),a.lcp_rld=(0,S.LI)(l),a.lcp_rldu=(0,S.LI)(u),s()}),(0,Z.onINP)(e=>{o=(0,S.LI)(e.value),s()},{reportAllChanges:!0});let u=async()=>{let s,u,d,f,p,_,h,v,m,b,A,w,O,T,I,C,R,x,L,N,D,k,M,j,H,B;l=!0,(0,P.DJ)(c),await (0,S.kf)();let F=performance.getEntriesByType(y.Vl)[0];if(F?.entryType===y.Vl){s=(0,S.LI)((0,S.T9)(F.domComplete-F.startTime,F.duration)),u=F.type,d=(0,S.LI)(F.startTime),f=(0,S.LI)(F.redirectStart),p=(0,S.LI)(F.redirectEnd),_=F.redirectCount,h=(0,S.LI)(F.fetchStart),v=(0,S.LI)(F.secureConnectionStart),m=(0,S.LI)(F.domainLookupStart),b=(0,S.LI)(F.domainLookupEnd),A=(0,S.LI)(F.connectStart),w=(0,S.LI)(F.connectEnd),O=(0,S.LI)(F.requestStart),T=(0,S.LI)(F.responseStart),I=(0,S.LI)(F.responseEnd),C=(0,S.LI)(F.unloadEventStart),R=(0,S.LI)(F.unloadEventEnd),x=(0,S.LI)(F.domInteractive),L=(0,S.LI)(F.domContentLoadedEventStart),N=(0,S.LI)(F.domContentLoadedEventEnd),D=(0,S.LI)(F.domComplete),k=(0,S.LI)(F.loadEventStart),M=(0,S.LI)(F.loadEventEnd),j=(0,S.LI)(F.workerStart);let e=performance.getEntriesByType("paint"),t=e.filter(e=>"first-paint"===e.name)?.[0],n=e.filter(e=>"first-contentful-paint"===e.name)?.[0];H=(0,S.tv)(t?.startTime),B=(0,S.tv)(n?.startTime)}else{let e=performance.timing,t=(0,S.uc)(),n=e=>e?e-t:e;s=n(e.domComplete),u=["navigate","reload","back_forward"][performance.navigation.type]??y.HV,d=n((0,S.T9)(e.redirectStart,e.navigationStart)),f=n(e.redirectStart),p=n(e.redirectEnd),_=performance.navigation.redirectCount,h=n(e.fetchStart),m=n(e.domainLookupStart),v=n(e.secureConnectionStart),b=n(e.domainLookupEnd),A=n(e.connectStart),w=n(e.connectEnd),O=n(e.requestStart),T=n(e.responseStart),I=n(e.responseEnd),C=n(e.unloadEventStart),R=n(e.unloadEventEnd),x=n(e.domInteractive),L=n(e.domContentLoadedEventStart),N=n(e.domContentLoadedEventEnd),D=n(e.domComplete),k=n(e.loadEventStart),M=n(e.loadEventEnd),j=-1,H=-1,B=-1}t.__addData({type:y.Vl,data:{duration:s,navigation_type:u,start_time:d,redirect_start:f,redirect_end:p,redirect_count:_,fetch_start:h,secure_connection_start:v,domain_lookup_start:m,domain_lookup_end:b,connect_start:A,connect_end:w,request_start:O,response_start:T,response_end:I,unload_event_start:C,unload_event_end:R,dom_interactive:x,dom_content_loaded_event_start:L,dom_content_loaded_event_end:N,dom_complete:D,load_event_start:k,load_event_end:M,worker_start:j,first_paint_start:H,first_contentful_paint_start:B,offline_bundle:!1,page_url:(0,S.kl)(),referer:E.qQ.referrer,cumulative_layout_shift:e,first_input_delay:r,largest_contentful_paint:i,interaction_to_next_paint:o,customized_data:(0,S.dp)({...g._A,...a,...n.pagePerformanceEntryTags}),page_name:g._A.page_name}})},c=(0,P.wg)(u,3e4)}!C&&(C=!0,x&&new PerformanceObserver(e=>{e.getEntries().forEach(e=>{I.forEach(t=>t(e))})}).observe({entryTypes:[R]}),(0,S.Tn)(E.jf.performance?.getEntriesByType)&&E.jf.performance.getEntriesByType(R).forEach(e=>{I.forEach(t=>t(e))})),T(),D()}function eZ(e,t){eq[e]?.(t)}function eQ(e){var t;if(!e||!(e&&e.app_name!==g.OF?.app_name?"number"!=typeof(t=e.sample)||(0,S.yT)(){};let n=function(e){let t=e.app_name;if(g.OF&&t===g.OF.app_name)return e=>{eU(eD(e,"v1","a_v1"),e)};let n="v1_"+t,r="a_"+n,i=eA(e);return eF(n,async(t,n)=>{for(;t.length>0;){let r=t.splice(0,300),o=ek(e),a=[];for(let{data:e}of r)a.push(e);o.data.entries=a,await i(o,n)}}),eF(r,async(t,n)=>{for(;t.length>0;){let r=t.splice(0,300),o=ek(e);o.tag="web-custom";let a=[];for(let{data:e}of r)a.push(e);o.data.custom_accums=a,await i(o,n)}}),e=>{eU(eD(e,n,r),e)}}(e);return e=>{e.point_id&&(null!=e.duration?n({type:y.tn,data:{type:"customized",customized_point_id:e.point_id,duration:(0,S.LI)(e.duration),customized_data:(0,S.dp)({...g._A,...(0,S.pH)(e.data)}),page_name:e.page_name||g._A.page_name,component_name:e.component_name,operation_name:e.operation_name,status:e.status,custom_field:e.custom_field,page_url:e.page_url,url:e.url}}):n({type:y.ed,data:{...e,timestamp:(0,S.tB)(),data:(0,S.dp)({...g._A,...(0,S.pH)(e.data)}),page_name:e.page_name||g._A.page_name}}))}}function e0(){let e=g.Iv?function(){if(!g.Vh)return()=>{};let e=g.Vh,t=function(e){let t=e.environment,n=e.de_app_id,r=e.secret_key,i="live"===t||"liveish"===t?eS(y.u1,n):eS(".test",n),o=eu(`apms_offlinestore_${n}_`,a);async function a(e){return await eE(async()=>await ef({url:i,data:e,apiKey:r}))}return async function(e,t){if(t)return void o(e);try{return await a(e)}catch{o(e)}}}(e);return eF("v2",async(n,r)=>{for(;n.length>0;){let i=n.splice(0,10),o={apiKey:e.secret_key,notifier:{},payloadVersion:"1.0",events:[...i]};await t(o,r)}}),e=>{eU("v2",e)}}():e=>{};j.push((e,t)=>{e2({type:y.m5,category:e,message:t.map(e=>{try{if("object"==typeof e)return JSON.stringify(e);return String(e)}catch{return String(e)}}).join(", ")})});let t="data-apms-id",n=e=>e?{dataApmsId:e.getAttribute(t)??"",id:e.id,className:e.className,tagName:e.tagName,text:(e=>{if(!e.isContentEditable)return e.textContent?.replace(/\s+/g," ").trim().slice(0,100)||void 0})(e)}:{};Y.push((e,r)=>{let i=r.target,o=n(i),a=null;o.dataApmsId||(a=i?.closest?.(`[${t}]`)),e2({type:y.m5,category:e,data:{target:o,...a&&a!==i?{ancestor_with_apms_id:n(a)}:{}}})});let f=[/\/__t__$/,/webfe-bot\.shopee\.io/,/google-analytics\.com/],p=[y.Cd,y.Cd];w.push(({url:e,method:t,headers:n})=>{if(e&&f.some(t=>t.test(e)))return p;let r=(0,S.tB)();return[i=>{let o=(0,S.tB)(),a={};i?.headers&&i.headers.forEach((e,t)=>{a[t]=e}),e2({type:y.fJ,category:y.Bb,data:{headers:(0,S.dp)(n),response_header:(0,S.dp)(a),method:t,url:e,time_span:o-r,status_code:i?.status}})},()=>{let i=(0,S.tB)();e2({type:y.fJ,category:y.Bb,data:{headers:(0,S.dp)(n),response_header:void 0,method:t,url:e,time_span:i-r,status_code:void 0}})}]}),z.push((e,t)=>{e2({type:y.Vl,category:y.Vl,data:{from:e,to:t}})}),eX=t=>{var n,r;let i=g.KQ?.beforeAddData?.(t);"object"==typeof i&&(t=Object.assign(t,i));let o=g.Iv&&!1!==i;if(n=t,r=o?"Exception caught and reported to APMS":g.Iv?"Exception caught but not sampled to send to APMS":"Exception caught but got ignored, not sent to APMS",U.error("[APMS]",r,n),!o)return;let f=E.GZ.hash,p=E.GZ.search;t.js_data_field={...g._A,...t.js_data_field,report_page_url:(0,S.kl)(),...f?{path_hash:f}:{},...p?{path_search:p}:{}},t.js_breadcrumbs=[...ez];let _=function(e){var t,n,r,i,o,f,p,_,h,v,m,b;if(!g.Vh)return;let{js_bundle_version:A,js_bundle_name:w,js_build_id:O}=g.Vh,{connection:T,browser:I,screen:C,device:R}=eL;return{isSampled:0,app:(t=a,n={region:g.Vh.region??y.HV,type:"web"},t||(t=n)),commonInfo:(r=l,i={bundle_id:y.u1,carrier_provider_code:y.u1,carrier_provider_name:y.u1,current_time:(0,S.tB)(),de_app_id:g.Vh.de_app_id,device_id:eN,is_vpn:!1,local_wifi_ip:y.u1,os_version:R.os_version,screen_density:C.screen_dpr,screen_height:C.screen_height,screen_width:C.screen_width,session_id:ex,user_id:g.Vh.user_id||y.u1},r||(r=i)),device:(o=u,f={id:eN,manufacturer:I.browser_name,model:I.browser_version,osName:R.os_name,osVersion:R.os_version,orientation:C.orientation},o||(o=f)),eventType:"web_js_error",tag:"web-exception",extra:{webCommonData:{js_bundle_name:w,js_bundle_version:A||y.u1,js_build_id:O||y.u1,js_sdk_name:"apms_web_sdk",js_sdk_version:"0.4.4",js_engine_name:I.engine_name,js_engine_version:I.engine_version,js_browser_name:I.browser_name,js_browser_version:I.browser_version,...g.KQ?.transport?.(e)}},metaData:(p=s,_={device:{brand:I.browser_name,screenDensity:C.screen_dpr,screenResolution:`${C.screen_width}x${C.screen_height}`,networkAccess:T.connection_type}},p||(p=_)),pageInfo:{pageId:E.GZ.href},session:(h=c,v={id:ex,startedAt:eP},h||(h=v)),user:(m=d,b={email:g.Vh.user_email,name:g.Vh.user_name,id:g.Vh.user_id||y.u1},m||(m=b)),exceptions:[e]}}(t);_&&e(_)},L.push(e=>{if(!ey(e))try{eX({js_error_type:y.ff,js_error_level:y.ff,js_error_name:e.name,js_error_message:e.message,js_error_stack:ee(e.stack),js_original_exception:(0,S.u$)(e),js_page_name:e4()})}catch{}}),k.push(e=>{try{let t=e.reason,n=t instanceof Error;if(n&&ey(t))return;let r=(0,S.Kg)(t)?t:n?t.message:y.u1,i=n?t.name:e.type,o=n?t.stack:et();eX({js_error_type:"unhandledrejection",js_error_level:y.ff,js_error_name:i,js_error_message:r,js_error_stack:ee(o),js_original_exception:(0,S.u$)(e.reason),js_page_name:e4()})}catch{}}),function(){if(H||(H=!0,!(F in E.jf)))return;let e=E.jf[F];B.forEach(t=>{t in e&&A(e,t,n=>(U[t]=n,(...r)=>{j.forEach(e=>e(t,r)),n.apply(e,r)}))})}(),function(){if(V||(V=!0,!E.qQ))return;let e=e=>{var t,n;if(!e||e[W])return;let a=function(e){try{return e.target}catch{return null}}(e);if(t=e.type,n=a,"keydown"===t&&(!n||!n.tagName||"INPUT"!==n.tagName&&"TEXTAREA"!==n.tagName&&!n.isContentEditable))return;b(e,W,!0),a&&!a[K]&&b(a,K,G());let l="keydown"===e.type?"input":e.type;!function(e){if(e.type!==i)return!1;try{if(!e.target||e.target[K]!==o)return!1}catch{}return!0}(e)&&(Y.forEach(t=>t(l,e)),i=e.type,o=a?a[K]:void 0),(0,P.DJ)(r),r=(0,P.wg)(()=>{o=void 0,i=void 0},1e3)};(0,P.q2)(E.qQ,"click",e,!1),(0,P.q2)(E.qQ,"keydown",e,!1),["EventTarget","Node"].forEach(t=>{let n=E.jf[t]?.prototype;n?.hasOwnProperty?.("addEventListener")&&(A(n,"addEventListener",t=>function(n,r,i){if("click"===n||"keydown"===n)try{this[q]=this[q]||{};let r=this[q];r[n]=r[n]||{refCount:0};let o=r[n];o.refCount||t.call(this,n,e,i),o.refCount++}catch{}return t.call(this,n,r,i)}),A(n,"removeEventListener",t=>function(n,r,i){if("click"===n||"keydown"===n)try{let r=this[q]||{},o=r[n];o&&(o.refCount--,o.refCount<=0&&(t.call(this,n,e,i),delete r[n]),0===Object.keys(r).length&&delete this[q])}catch{}return t.call(this,n,r,i)}))})}(),T(),function(){!X&&(X=!0,$ in E.jf&&E.jf[$].pushState&&E.jf[$].replaceState&&((0,P.q2)(E.jf,"popstate",()=>{let e=J,t=E.GZ.pathname;J=t,z.forEach(n=>n(e,t))}),A(E.jf[$],"pushState",e),A(E.jf[$],"replaceState",e)));function e(e){return function(...t){let n=t.length>2?t[2]:void 0;if(n){let e=J,t=String(n);J=t,z.forEach(n=>n(e,t))}return e.apply(this,t)}}}(),D(),M||(M=!0,A(E.jf,"onunhandledrejection",e=>t=>(k.forEach(e=>e(t)),(0,S.Tn)(e)&&e.call(E.jf,t),!1)))}async function e1(){Object.values(eq).forEach(e=>e()),await eV(),e$=!1}function e2(e){e.trace_id=G(),e.timestamp=(0,S.tB)(),ez.length>=50&&ez.splice(0,ez.length-50+1),ez.push(e)}function e3(e){if(!(0,S.Tn)(eX))return;let{error:t,message:n,data:r}=e;if(t||n)try{let e=t instanceof Error,i=n??(e?t.message:void 0)??((0,S.Kg)(t)?t:y.u1),o=r?.name??(e?t.name:void 0)??y.ff,a=r?.level??y.ff,l=(e?ee(t.stack):void 0)??et();eX({js_error_type:"custom",js_error_level:a,js_error_name:o,js_error_message:i,js_error_stack:l,js_original_exception:(0,S.u$)(t),js_data_field:(0,S.pH)(r?.data_field),js_extra:r?.extra,js_page_name:r?.page_name||e4()})}catch{}}function e4(){return E.GZ.hostname}},40157:(e,t,n)=>{var r=n(68359),i=n(70134);e.exports=Object.keys||function(e){return r(e,i)}},40684:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr})},40761:(e,t,n)=>{"use strict";n.d(t,{aU:()=>u,Uy:()=>s});var r,i,o=n(38784),a=n(45910);(r=i||(i={})).FREE_GIFT="FREE_GIFT",r.NEW="NEW",r.DISCOUNT="DISCOUNT";let l={[o.pE.PREFERRED]:[o.pE.OFFICIAL_SHOP,o.pE.SBS,o.pE.PREFERRED_PLUS,o.pE.TOP_PRODUCTS,o.pE.S_MART,o.pE.PREMIUM],[o.pE.OFFICIAL_SHOP]:[o.pE.PREFERRED,o.pE.SBS,o.pE.PREFERRED_PLUS,o.pE.TOP_PRODUCTS,o.pE.S_MART,o.pE.PREMIUM,o.pE.MALL_FBS],[o.pE.SBS]:[o.pE.PREFERRED,o.pE.OFFICIAL_SHOP,o.pE.PREFERRED_PLUS,o.pE.TOP_PRODUCTS,o.pE.S_MART,o.pE.PREMIUM,o.pE.MALL_FBS],[o.pE.PREFERRED_PLUS]:[o.pE.OFFICIAL_SHOP,o.pE.SBS,o.pE.PREFERRED,o.pE.TOP_PRODUCTS,o.pE.S_MART,o.pE.PREMIUM],[o.pE.TOP_PRODUCTS]:[o.pE.OFFICIAL_SHOP,o.pE.SBS,o.pE.PREFERRED,o.pE.PREFERRED_PLUS,o.pE.S_MART,o.pE.PREMIUM],[o.pE.S_MART]:[o.pE.OFFICIAL_SHOP,o.pE.SBS,o.pE.PREFERRED,o.pE.PREFERRED_PLUS,o.pE.TOP_PRODUCTS,o.pE.PREMIUM,o.pE.MALL_FBS],[o.pE.PREMIUM]:[o.pE.OFFICIAL_SHOP,o.pE.SBS,o.pE.PREFERRED,o.pE.PREFERRED_PLUS,o.pE.TOP_PRODUCTS,o.pE.S_MART],[o.pE.MALL_FBS]:[o.pE.OFFICIAL_SHOP,o.pE.SBS,o.pE.PREFERRED,o.pE.PREFERRED_PLUS,o.pE.TOP_PRODUCTS,o.pE.PREMIUM,o.pE.S_MART],[a.vi.NON_CC_INSTALLMENT]:[a.vi.CC_INSTALLMENT],[a.vi.CC_INSTALLMENT]:[a.vi.NON_CC_INSTALLMENT],[a.vi.EXCLUSIVE_PRICE]:[a.vi.CUSTOM,a.vi.BUNDLE_DEAL,a.vi.WHOLESALE,a.vi.CASHBACK,a.vi.ADD_ON,a.vi.CC_INSTALLMENT,a.vi.NON_CC_INSTALLMENT,a.vi.PURCHASE_WITH_GIFT,a.vi.PURCHASE_WITH_PURCHASE],[a.vi.DEEP_DISCOUNT]:[a.vi.CUSTOM,a.vi.BUNDLE_DEAL,a.vi.WHOLESALE,a.vi.CASHBACK,a.vi.ADD_ON,a.vi.CC_INSTALLMENT,a.vi.NON_CC_INSTALLMENT,a.vi.PURCHASE_WITH_GIFT,a.vi.PURCHASE_WITH_PURCHASE,a.vi.EXCLUSIVE_PRICE,a.vi.VOUCHER],[i.FREE_GIFT]:[i.DISCOUNT]};function s(e){let t=new Set([]),n=[];for(let r of e){if(t.has(r.name))continue;let e=l[r.name];if(Array.isArray(e))for(let n of e)t.add(n);n.push(r)}return n}function u(e){let t=new Set([]),n=[];for(let r of e)t.has(r.id)||(t.add(r.id),n.push(r));return n}},41160:(e,t,n)=>{"use strict";n.d(t,{UE:()=>ec,ll:()=>ei,rD:()=>ef,UU:()=>el,jD:()=>eu,ER:()=>ed,cY:()=>eo,BN:()=>ea,Ej:()=>es});let r=["top","right","bottom","left"],i=Math.min,o=Math.max,a=Math.round,l=Math.floor,s=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function _(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}function v(e){return["top","bottom"].includes(f(e))?"y":"x"}function m(e){return e.replace(/start|end/g,e=>c[e])}function g(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function y(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function E(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function b(e,t,n){let r,{reference:i,floating:o}=e,a=v(t),l=_(v(t)),s=h(l),u=f(t),c="y"===a,d=i.x+i.width/2-o.width/2,m=i.y+i.height/2-o.height/2,g=i[s]/2-o[s]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:m};break;case"left":r={x:i.x-o.width,y:m};break;default:r={x:i.x,y:i.y}}switch(p(t)){case"start":r[l]-=g*(n&&c?-1:1);break;case"end":r[l]+=g*(n&&c?-1:1)}return r}let A=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),s=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=b(u,r,s),f=r,p={},_=0;for(let n=0;ne[t]>=0)}async function T(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=f(n),l=p(n),s="y"===v(n),u=["left","top"].includes(a)?-1:1,c=o&&s?-1:1,_=d(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:g}="number"==typeof _?{mainAxis:_,crossAxis:0,alignmentAxis:null}:{mainAxis:_.mainAxis||0,crossAxis:_.crossAxis||0,alignmentAxis:_.alignmentAxis};return l&&"number"==typeof g&&(m="end"===l?-1*g:g),s?{x:m*c,y:h*u}:{x:h*u,y:m*c}}function I(){return"u">typeof window}function C(e){return P(e)?(e.nodeName||"").toLowerCase():"#document"}function R(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function x(e){var t;return null==(t=(P(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function P(e){return!!I()&&(e instanceof Node||e instanceof R(e).Node)}function L(e){return!!I()&&(e instanceof Element||e instanceof R(e).Element)}function N(e){return!!I()&&(e instanceof HTMLElement||e instanceof R(e).HTMLElement)}function D(e){return!(!I()||"u"{try{return e.matches(t)}catch{return!1}})}function j(e){let t=H(),n=L(e)?F(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function H(){return!("u"L(e)&&"body"!==C(e)),i=null,o="fixed"===F(e).position,a=o?G(e):e;for(;L(a)&&!B(a);){let t=F(a),n=j(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&["absolute","fixed"].includes(i.position)||k(a)&&!n&&function e(t,n){let r=G(t);return!(r===n||!L(r)||B(r))&&("fixed"===F(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=G(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=l[0],u=l.reduce((e,n)=>{let r=Z(t,n,a);return e.top=o(r.top,e.top),e.right=i(r.right,e.right),e.bottom=i(r.bottom,e.bottom),e.left=o(r.left,e.left),e},Z(t,s,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:et,getElementRects:en,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=W(e);return{width:t,height:n}},getScale:q,isElement:L,isRTL:function(e){return"rtl"===F(e).direction}};function ei(e,t,n,r){let a;void 0===r&&(r={});let{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=K(e),_=s||u?[...p?Y(p):[],...Y(t)]:[];_.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let h=p&&d?function(e,t){let n,r=null,a=x(e);function s(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),s();let{left:f,top:p,width:_,height:h}=e.getBoundingClientRect();if(c||t(),!_||!h)return;let v={rootMargin:-l(p)+"px "+-l(a.clientWidth-(f+_))+"px "+-l(a.clientHeight-(p+h))+"px "+-l(f)+"px",threshold:o(0,i(1,d))||1},m=!0;function g(e){let t=e[0].intersectionRatio;if(t!==d){if(!m)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}m=!1}try{r=new IntersectionObserver(g,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(g,v)}r.observe(e)}(!0),s}(p,n):null,v=-1,m=null;c&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&m&&(m.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),p&&!f&&m.observe(p),m.observe(t));let g=f?$(e):null;return f&&function t(){let r=$(e);g&&(r.x!==g.x||r.y!==g.y||r.width!==g.width||r.height!==g.height)&&n(),g=r,a=requestAnimationFrame(t)}(),n(),()=>{var e;_.forEach(e=>{s&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=m)||e.disconnect(),m=null,f&&cancelAnimationFrame(a)}}let eo=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:o,placement:a,middlewareData:l}=t,s=await T(t,e);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:a}}}}},ea=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:a}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),p={x:n,y:r},h=await S(t,c),m=v(f(a)),g=_(m),y=p[g],E=p[m];if(l){let e="y"===g?"top":"left",t="y"===g?"bottom":"right",n=y+h[e],r=y-h[t];y=o(n,i(y,r))}if(s){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=E+h[e],r=E-h[t];E=o(n,i(E,r))}let b=u.fn({...t,[g]:y,[m]:E});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[g]:l,[m]:s}}}}}},el=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,o,a,l,s,u;let c,y,E,{placement:b,middlewareData:A,rects:w,initialPlacement:O,platform:T,elements:I}=t,{mainAxis:C=!0,crossAxis:R=!0,fallbackPlacements:x,fallbackStrategy:P="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:N=!0,...D}=d(e,t);if(null!=(n=A.arrow)&&n.alignmentOffset)return{};let k=f(b),M=v(O),j=f(O)===O,H=await (null==T.isRTL?void 0:T.isRTL(I.floating)),B=x||(j||!N?[g(O)]:(c=g(O),[m(O),c,m(c)])),F="none"!==L;!x&&F&&B.push(...(y=p(O),E=function(e,t,n){let r=["left","right"],i=["right","left"];switch(e){case"top":case"bottom":if(n)return t?i:r;return t?r:i;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(f(O),"start"===L,H),y&&(E=E.map(e=>e+"-"+y),N&&(E=E.concat(E.map(m)))),E));let U=[O,...B],G=await S(t,D),Y=[],V=(null==(r=A.flip)?void 0:r.overflows)||[];if(C&&Y.push(G[k]),R){let e,t,n,r,i=(l=b,s=w,void 0===(u=H)&&(u=!1),e=p(l),n=h(t=_(v(l))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[n]>s.floating[n]&&(r=g(r)),[r,g(r)]);Y.push(G[i[0]],G[i[1]])}if(V=[...V,{placement:b,overflows:Y}],!Y.every(e=>e<=0)){let e=((null==(i=A.flip)?void 0:i.index)||0)+1,t=U[e];if(t)return{data:{index:e,overflows:V},reset:{placement:t}};let n=null==(o=V.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(P){case"bestFit":{let e=null==(a=V.filter(e=>{if(F){let t=v(e.placement);return t===M||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=O}if(b!==n)return{reset:{placement:n}}}return{}}}},es=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let a,l,{placement:s,rects:u,platform:c,elements:_}=t,{apply:h=()=>{},...m}=d(e,t),g=await S(t,m),y=f(s),E=p(s),b="y"===v(s),{width:A,height:w}=u.floating;"top"===y||"bottom"===y?(a=y,l=E===(await (null==c.isRTL?void 0:c.isRTL(_.floating))?"start":"end")?"left":"right"):(l=y,a="end"===E?"top":"bottom");let O=w-g.top-g.bottom,T=A-g.left-g.right,I=i(w-g[a],O),C=i(A-g[l],T),R=!t.middlewareData.shift,x=I,P=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(P=T),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(x=O),R&&!E){let e=o(g.left,0),t=o(g.right,0),n=o(g.top,0),r=o(g.bottom,0);b?P=A-2*(0!==e||0!==t?e+t:o(g.left,g.right)):x=w-2*(0!==n||0!==r?n+r:o(g.top,g.bottom))}await h({...t,availableWidth:P,availableHeight:x});let L=await c.getDimensions(_.floating);return A!==L.width||w!==L.height?{reset:{rects:!0}}:{}}}},eu=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...i}=d(e,t);switch(r){case"referenceHidden":{let e=w(await S(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:O(e)}}}case"escaped":{let e=w(await S(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:O(e)}}}default:return{}}}}},ec=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:a,rects:l,platform:s,elements:u,middlewareData:c}=t,{element:f,padding:m=0}=d(e,t)||{};if(null==f)return{};let g=y(m),E={x:n,y:r},b=_(v(a)),A=h(b),S=await s.getDimensions(f),w="y"===b,O=w?"clientHeight":"clientWidth",T=l.reference[A]+l.reference[b]-E[b]-l.floating[A],I=E[b]-l.reference[b],C=await (null==s.getOffsetParent?void 0:s.getOffsetParent(f)),R=C?C[O]:0;R&&await (null==s.isElement?void 0:s.isElement(C))||(R=u.floating[O]||l.floating[A]);let x=R/2-S[A]/2-1,P=i(g[w?"top":"left"],x),L=i(g[w?"bottom":"right"],x),N=R-S[A]-L,D=R/2-S[A]/2+(T/2-I/2),k=o(P,i(D,N)),M=!c.arrow&&null!=p(a)&&D!==k&&l.reference[A]/2-(Dn&&(m=n)}if(u){var b,A;let e="y"===h?"width":"height",t=["top","left"].includes(f(i)),n=o.reference[p]-o.floating[e]+(t&&(null==(b=a.offset)?void 0:b[p])||0)+(t?0:E.crossAxis),r=o.reference[p]+o.reference[e]+(t?0:(null==(A=a.offset)?void 0:A[p])||0)-(t?E.crossAxis:0);gr&&(g=r)}return{[h]:m,[p]:g}}}},ef=(e,t,n)=>{let r=new Map,i={platform:er,...n},o={...i.platform,_c:r};return A(e,t,{...i,platform:o})}},41293:(e,t,n)=>{"use strict";function r(e,[t,n]){return Math.min(n,Math.max(t,e))}n.d(t,{q:()=>r})},41905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDevModeTrafficApi=function(e){return"//abtest-api.dataplt.".concat(null!=e?e:"test",".shopee.io/").concat(r.trafficAPI)},t.getTrafficApi=function(e){var t,n,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(null==globalThis||null==(t=globalThis.location)?void 0:t.hostname)||"";e?(n=r.env2UrlMap[e],(0,i.isValidKey)(n,r.env2AbEnv)&&(n=r.env2AbEnv[n])):n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null==globalThis||null==(t=globalThis.location)?void 0:t.hostname;if(!e||null!=e&&e.includes("localhost"))return"test";var t,n,i=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=a(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,o=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){l=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(l)throw i}}}}(r.noneLiveEnv);try{for(i.s();!(n=i.n()).done;){var o=n.value,l=e.lastIndexOf("".concat(o,"."));if(0===l||"."===e[l-1]){if("staging"===o||"test-stable"===o)return r.env2AbEnv[o];return o}}}catch(e){i.e(e)}finally{i.f()}return r.liveEnvUrl}(l);var s="";n!==r.liveEnvUrl&&(s=".");for(var u="",c=0,d=Object.entries(r.countryPostfixMap);ctypeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var o=[],a=!0,l=!1;try{for(i=i.call(e);!(a=(n=i.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(e){l=!0,r=e}finally{try{a||null==i.return||i.return()}finally{if(l)throw r}}return o}}(e,t)||a(e,t)||function(){throw TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function a(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n{var r=n(14376),i=n(57925),o=n(52537),a=n(57224),l=n(70854),s=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(l(e)),n=a.f;return n?s(t,n(e)):t}},43164:(e,t,n)=>{var r=n(55521),i=n(43670),o=n(10047);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},43256:(e,t,n)=>{"use strict";n.d(t,{$G:()=>O,SS:()=>U,UE:()=>F,MI:()=>w,Ze:()=>C,aG:()=>H,M_:()=>j});var r,i,o,a,l,s,u,c,d=n(26522),f=n(58339),p=n.n(f),_="UPDATE_DATA",h="UPDATE_BANNER_FETCHING_STATUS",v=n(56169);function m(){return!!self.document&&"string"==typeof self.document.cookie}(r=l||(l={})).PC="pc",r.RW="rw",r.LITE="lite";var g=["Googlebot","Baiduspider","bingbot","Yahoo","coccocbot"],y=["Mobile"],E=["Windows NT","Macintosh","X11"];function b(e,t){return e.some(function(e){return t.includes(e)})}function A(){var e,t,n,r,i=null==(e=window)||null==(t=e.navigator)?void 0:t.userAgent,o=(null==(n=window)||null==(r=n.location)?void 0:r.search)||"";if(o){if(/__mobile__/.test(o))return l.RW;if(/__hybrid_pc__/.test(o))return l.PC}return i?b(g,i)&&!b(y,i)||b(E,i)?l.PC:l.RW:l.PC}function S(e){return null!=e&&e.startsWith("LT")?l.LITE:null!=e&&e.startsWith("RW")?l.RW:null!=e&&e.startsWith("PC")?l.PC:void 0}function w(e){return new URLSearchParams(window.location.search).get(e)}function O(){return T.apply(this,arguments)}function T(){return(T=(0,d.A)((p()).mark(function e(t,r){var i,o,a,s,u,c;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=w("banner_preview_token"),o={},i&&(o.banner_preview_token=i),a=JSON.stringify({spaces:t.map(function(e){var t={space_key:e.space_key};return e.space_filter&&(t.space_filter=Object.keys(e.space_filter).map(function(t){return{key:t,value:e.space_filter[t]}})),t}),extra_data:JSON.stringify(o)}),s={"Content-Type":"application/json",Accept:"application/json","X-CSRFToken":function(){var e="csrftoken",t=function(e){if(m()){var t=new RegExp("(?:^|;\\s?)".concat(e,"=([^;$]+)")).exec(self.document.cookie||"");if(t)return t[1]}}(e);if(!t){var n=t=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=0;r0&&void 0!==arguments[0]?arguments[0]:D,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case _:var r={};return null==n||null==(e=n.payload)||e.filter(Boolean).forEach(function(e){r[e.space_key]=e}),(0,N.A)((0,N.A)({},t),{},{bannersData:(0,N.A)((0,N.A)({},t.bannersData),r)});case h:for(var i=n.payload,o=i.space_keys,a=(0,N.A)({},t.bannersData),l=0;l{"use strict";n.d(t,{A:()=>s});let r="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);for(var i,o=new Uint8Array(16),a=[],l=0;l<256;++l)a.push((l+256).toString(16).slice(1));let s=function(e,t,n){if(r&&!t&&!e)return r();var l=(e=e||{}).random||(e.rng||function(){if(!i&&!(i="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(o)})();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t){n=n||0;for(var s=0;s<16;++s)t[n+s]=l[s];return t}return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(l)}},43670:(e,t,n)=>{var r=n(55521),i=n(68842),o=n(84903),a=n(70854),l=n(90332),s=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";t.f=r?o?function(e,t,n){if(a(e),t=l(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=l(t),a(n),i)try{return u(e,t,n)}catch{}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},44789:function(e,t,n){e.exports=n(54570).enc.Hex},45219:(e,t,n)=>{"use strict";n.d(t,{A:()=>$});var r,i,o,a,l,s,u,c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;nt.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}var f=("function"==typeof SuppressedError&&SuppressedError,n(65168)),p="right-scroll-bar-position",_="width-before-scroll-bar";function h(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var v="u">typeof window?f.useLayoutEffect:f.useEffect,m=new WeakMap,g=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,l={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=c({async:!0,ssr:!1},r),l),y=function(){},E=f.forwardRef(function(e,t){var n,r,i,o,a=f.useRef(null),l=f.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),s=l[0],u=l[1],p=e.forwardProps,_=e.children,E=e.className,b=e.removeScrollBar,A=e.enabled,S=e.shards,w=e.sideCar,O=e.noIsolation,T=e.inert,I=e.allowPinchZoom,C=e.as,R=d(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),x=(n=[a,t],r=function(e){return n.forEach(function(t){return h(t,e)})},(i=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=r,o=i.facade,v(function(){var e=m.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||h(e,null)}),r.forEach(function(e){t.has(e)||h(e,i)})}m.set(o,n)},[n]),o),P=c(c({},R),s);return f.createElement(f.Fragment,null,A&&f.createElement(w,{sideCar:g,removeScrollBar:b,shards:S,noIsolation:O,inert:T,setCallbacks:u,allowPinchZoom:!!I,lockRef:a}),p?f.cloneElement(f.Children.only(_),c(c({},P),{ref:x})):f.createElement(void 0===C?"div":C,c({},P,{className:E,ref:x}),_))});E.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},E.classNames={fullWidth:_,zeroRight:p};var b=function(e){var t=e.sideCar,n=d(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,c({},n))};b.isSideCarExport=!0;var A=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},S=function(){var e=A();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},w=function(){var e=S();return function(t){return e(t.styles,t.dynamic),null}},O={left:0,top:0,right:0,gap:0},T=function(e){return parseInt(e||"",10)||0},I=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[T(n),T(r),T(i)]},C=function(e){if(void 0===e&&(e="margin"),"u"